|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-02-12 11:25 UTC] rahulpriyadarshi@php.net
-Assigned To:
+Assigned To: rahulpriyadarshi
[2014-02-12 11:25 UTC] rahulpriyadarshi@php.net
[2014-02-13 05:19 UTC] rahulpriyadarshi@php.net
[2014-02-13 05:20 UTC] rahulpriyadarshi@php.net
[2014-02-13 05:20 UTC] rahulpriyadarshi@php.net
[2014-02-13 06:40 UTC] rahulpriyadarshi@php.net
[2014-02-13 18:52 UTC] josemalonsom at yahoo dot es
-Status: Assigned
+Status: Closed
[2014-02-13 18:52 UTC] josemalonsom at yahoo dot es
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 13:00:01 2025 UTC |
Description: ------------ An exception is thrown when BLOB or CLOB types are inserted. PHP Version: 5.8.8 IBM/Informix-Client SDK Version: 4.10.UC2DE PDO Informix Version: 1.3.1 S.O.: reproduced in Ubuntu 12.04 and RedHat EL5 The error can be also reproduced with the test file PDO_INFORMIX-1.3.1/tests/fvt_017c.phpt from the source of the PDO_INFORMIX extension. Test script: --------------- // $con has a valid PDO Informix connection $con->exec('CREATE TABLE test_lob ( test_blob BLOB, test_clob BLOB)'); $stmt = $con->prepare('INSERT INTO test_lob (test_blob, test_clob) VALUES (?, ?)'); $b_content = "BBBBBBBBBBBBB"; $c_content = "CCCCCCCCCCCCC"; $stmt->bindParam(1, $b_content); $stmt->bindParam(2, $c_content); try { $stmt->execute(); // this throws a exception } catch (\Exception $e) { print $e . "\n"; } Expected result: ---------------- The data has to be inserted in both fields. Actual result: -------------- exception 'PDOException' with message 'SQLSTATE[HY000]: General error: -9810 [Informix][Informix ODBC Driver][Informix]Smart-large-object error. (SQLExecute[-9810] at /src/pdo-informix-source/PDO_INFORMIX-1.3.1/informix_statement.c:759)'