|
|||
|
Hey all...
Trying to track down a bug with DB2/400 and fetchAll using the new db2 adapter included with the i5 version of Zend Core. When attempting a db->fetchAll, I've been receiving the following error: PHP Code:
PHP Code:
PHP Code:
Anyone like to offer some direction? |
|
|||
|
Hi - not a db2 user myself, so I'm not aware of any bugs--but maybe I can help with the general question.
For debugging purposes, instead of calling fetchAll from an instance of Zend_Db_Adapter, you might want to call fetchAll from a Zend_Db_Statement_Db2 object instead. This removes a layer of indirection, and gives you more room to experiment (more query options) to figure out the source of your syntax error. To construct a Zend_Db_Statement object, you pass a Zend_Db_Adapter instance and the sql query into the constructor; there's plenty on Statement in the reference guide to get you started. Hope this helps! |
![]() |
| Thread Tools | |
| Display Modes | |
|
|