Doctrine DBAL
  1. Doctrine DBAL
  2. DBAL-201

Remote IBM DB2 connection needs protocol specified

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.6, 2.2
    • Component/s: Drivers
    • Security Level: All
    • Labels:
      None
    • Environment:
      using doctrine2 included in symfony2 2.0.9, running on MAMP on OSX

      Description

      Thanks so much for adding DB2 support to Doctrine2, it's awesome!

      I'm using it to connect to a remote DB2 database, and in db2driver.php, it is expecting the 'protocol' parameter to be set. I tried the obvious, adding a database_protocol to my parameters.ini file (to match the other database things in there), but that didn't work.

      I did a temporary fix of hardcoding it in the db2driver.php to be PROTOCOL=TCPIP , and it works.

      So i think the proper fix would be to add the code so that database_protocol in parameters.ini is picked up.

        Activity

        Hide
        Benjamin Eberlei added a comment -

        This is primarily a DoctrineBundle bug. However i fixed it in DBAL to default to TCPIP protocol parameter now.

        DB2 is not "really" supported. I have considerable problems with it segfaulting the DBAL testsuite. You should be very careful.

        Show
        Benjamin Eberlei added a comment - This is primarily a DoctrineBundle bug. However i fixed it in DBAL to default to TCPIP protocol parameter now. DB2 is not "really" supported. I have considerable problems with it segfaulting the DBAL testsuite. You should be very careful.

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Suzy Deffeyes
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: