Doctrine DBAL
  1. Doctrine DBAL
  2. DBAL-134

Doctrine\DBAL\Connection::query() no logging

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.6
    • Fix Version/s: 2.0.7, 2.1
    • Component/s: None
    • Labels:
      None

      Description

      Doctrine\DBAL\Connection::query() does not use SqlLogger.

      I guess it may be fixed like this:

          public function query()
          {
              $this->connect();
      
              $args = func_get_args();
      
              $logger = $this->getConfiguration()->getSQLLogger();
              if ($logger) {
                  $logger->startQuery($args[0]);
              }
      
              $statement = call_user_func_array(array($this->_conn, 'query'), $args);
      
              if ($logger) {
                  $logger->stopQuery();
              }
      
              return $statement;
          }
      

        Activity

        Kirill chEbba Chebunin created issue -
        Benjamin Eberlei made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.0.7 [ 10151 ]
        Fix Version/s 2.1 [ 10068 ]
        Resolution Fixed [ 1 ]
        Benjamin Eberlei made changes -
        Workflow jira [ 12747 ] jira-feedback2 [ 17729 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 17729 ] jira-feedback3 [ 20084 ]

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Kirill chEbba Chebunin
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: