Doctrine DBAL
  1. Doctrine DBAL
  2. DBAL-141

PDO Connection Failure through TNS - PDOOracle/Driver.php line 56

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.2
    • Component/s: Platforms
    • Labels:
      None
    • Environment:
      CentOS 6.0, Symfony 2.0.0 (RC), PHP 5.3.6, Oracle 11g Enterprise, Oracle InstantClient 11.0.2

      Description

      On line 56 of the file ./vendor/doctrine-dbal/lib/Doctrine/DBAL/Driver/PDOOracle/Driver.php:

      The line reads:
      $dsn .= '))(CONNECT_DATA=(SID=' . $params['dbname'] . ')))'; should read $dsn .= '))(CONNECT_DATA=(SERVICE_NAME=' . $params['dbname'] . ')))';

      If both SID and SERVICE_NAME need to be available for use, then logic should be inserted to determine which method is being used.

        Issue Links

          Activity

          Ed Anderson created issue -
          Benjamin Eberlei made changes -
          Field Original Value New Value
          Link This issue is duplicated by DBAL-136 [ DBAL-136 ]
          Benjamin Eberlei made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 2.2 [ 10142 ]
          Resolution Fixed [ 1 ]
          Benjamin Eberlei made changes -
          Workflow jira [ 12887 ] jira-feedback2 [ 17736 ]
          Benjamin Eberlei made changes -
          Workflow jira-feedback2 [ 17736 ] jira-feedback3 [ 20091 ]

            People

            • Assignee:
              Benjamin Eberlei
              Reporter:
              Ed Anderson
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: