db2_fetch_assoc : Column information cannot be retrived

General discussion on Zend Server for IBM System i
Post Reply
laur3750
Posts: 1
Joined: Mon May 02, 2016 8:39 am

db2_fetch_assoc : Column information cannot be retrived

Post by laur3750 » Mon May 02, 2016 8:45 am

Zend server ibm i 8.5 php 5.6.18
my query is ok with iNavigator.

after a db_execute, i use db2_fetch_row or db2_fetch_assoc, in php, and i have se same error : Column information cannot be retrieved
i have no problem with db2_exec and db2_fetch_assoc

I resume :
a) $stmt = db2_exec($bdCnx, $sReq, array('cursor' => DB2_SCROLLABLE));
while ($row = db2_fetch_assoc($stmt)) { } : db2_fecth_assoc work

b) with db2_prepare, db2_execute : db2_fecth_assoc doesn't work

have you an idea ?

Post Reply