DBAL-201: Remote IBM DB2 connection needs protocol specified #1374

doctrinebot opened this Issue Jan 13, 2012 · 2 comments

2 participants


Jira issue originally created by user suzyq:

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.


Comment created by @beberlei:

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.


Issue was closed with resolution "Fixed"

@doctrinebot doctrinebot added the Bug label Dec 6, 2015
@beberlei beberlei was assigned by doctrinebot Dec 6, 2015
@doctrinebot doctrinebot added this to the 2.1.6 milestone Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment