|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-06-24 02:24 UTC] petr dot havranek at gmail dot com
[2009-07-01 02:27 UTC] abhargav at in dot ibm dot com
[2015-06-05 14:02 UTC] sillygoose at gmail dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 09:00:01 2025 UTC |
Description: ------------ When I make fetch for any BLOB statement, I get error HY009|-11066|[Informix][Informix ODBC Driver]Invalid argument value. (SQLGetData[-11066] at /home/software/PDO_INFORMIX-1.2.6/informix_statement.c:66)). I used PHP 5.2.9, PDO_INFORMIX 1.2.6, clientSDK 2.9 UC4 on Linux and database IBM Informix Dynamic Server Version 9.40.UC7. Reproduce code: --------------- $loConn = new PDO("informix:database=db;server=srv_1;", "user", "passwd"); try { // this Select return row $lcSQL = "SELECT * FROM t_certbin WHERE c_certbin=1"; $stm = $loConn->prepare($lcSQL); $stm->execute(); $v =$stm->fetchAll(PDO::FETCH_ASSOC); if ($stm->errorCode()!==PDO::ERR_NONE) { throw new Exception('FETCH ERROR'); }; echo "OK"."<br />"; var_dump($v); } catch (Exception $e) { echo "*".$e->getMessage()."*"; } Expected result: ---------------- OK array(1) { [0]=> array(4) { ["C_CERTBIN"]=> string(4) "1" ["C_CERT"]=> string(4) "2" ["B_CERTBIN"]=> resource(2) of type (stream) ["STAV"]=> string(1) "1" } } Actual result: -------------- *FETCH ERROR*