Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • typo3 typo3
  • Project information
    • Project information
    • Activity
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Insights
    • Repository
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • typo3typo3
  • typo3typo3
  • Repository
Switch branch/tag
  • typo3
  • typo3
  • sysext
  • core
  • Classes
  • Database
  • Connection.php
Find file BlameHistoryPermalink
  • Nicole Cordes's avatar
    [BUGFIX] Prevent enforcing opened database connection with initCommands · 6fbefa62
    Nicole Cordes authored Feb 04, 2018 and Helmut Hummel's avatar Helmut Hummel committed Feb 04, 2018
    This patch moves the execution of configured initCommands to the end
    of connect function. This prevents a database connection from being
    opened by default due to the execution of commands right after class
    initialization and still ensures a connection is configured properly
    before first command execution.
    
    Furthermore this patch adds a new functional test for the ErrorHandler.
    The test uses some predefined initCommands to enforce the strict mode
    of MySQL database to be set. Due to the predefined initCommands the
    test failed before as the connection was forced to be opened. For
    further information see the referenced forge ticket.
    
    Resolves: #83770
    Releases: master, 8.7
    Change-Id: I2287600959b3ec06d338e26373562850307ce0b1
    Reviewed-on: https://review.typo3.org/55548
    
    
    Tested-by: default avatarTYPO3com <no-reply@typo3.com>
    Reviewed-by: default avatarMathias Schreiber <mathias.schreiber@typo3.com>
    Tested-by: default avatarMathias Schreiber <mathias.schreiber@typo3.com>
    Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
    Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
    Reviewed-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
    Reviewed-by: Helmut Hummel's avatarHelmut Hummel <typo3@helhum.io>
    Tested-by: Helmut Hummel's avatarHelmut Hummel <typo3@helhum.io>
    6fbefa62