the i5 options only work for IBM i5 servers (not iseries) also, the documentation fails to mention that those options also only work from PASE (running PHP on an ibm server rather than linux).
I just went ahead and modified the pecl ibm_db2 driver to do what I wanted, but it seems there should be an easier way.
Main Topics
Browse All Topics





by: Gary_The_IT_ProPosted on 2009-06-30 at 14:03:34ID: 24749583
I'm not much of an expert on accessing DB2 from PHP, but I'll give it a shot:
or db2_connect option "i5_commit"=>DB2_I5_TXN_NO_ COMMIT. I don't know if there is an OS version dependency, since these are long-standing connection capabilities in every various DB2/400 database connectivity tool I've ever used.
1) Autocommit doesn't help with a non-journaled table, since you can only have an isolation level of no-commit without journaling.
2) You need v1.5.1 or later of pecl ibm_db2 package to use the php.ini setting ibm_db2.i5_allow_commit==0
Assuming it is a version issue, is there any reason you can't just create a stored procedure on the AS/400 that sets the proper isolation level and handles the insert?
If that isn't a good solution for you, then please post your code, the OS version on the AS/400, and the pecl ibm_db2 version.
- Gary Patterson