|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-04-29 21:45 UTC] wez@php.net
[2006-05-01 10:20 UTC] kfbombar at us dot ibm dot com
[2017-01-20 20:52 UTC] heiglandreas@php.net
-Status: Open
+Status: Feedback
-Package: PDO_ODBC
+Package: *General Issues
[2017-01-20 20:52 UTC] heiglandreas@php.net
[2017-01-29 04:22 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 20:00:01 2025 UTC |
Description: ------------ The insertion of a large CLOB or BLOB file (>300K) into DB2 will not work correctly through PDO_ODBC. The entire file is not uploaded to the database. Reproduce code: --------------- <? $db = new PDO('odbc:db2node', 'db2inst1', 'db2pass'); $db->exec( "DROP TABLE odbctest" ); $db->exec( "CREATE TABLE odbctest (large clob)" ); $fp = fopen('/home/user/largefile.txt', 'r'); $stmt = $db->prepare('INSERT INTO odbctest (large) values (?)'); $stmt->bindParam( 1, $fp, PDO::PARAM_LOB ); $stmt->execute(); ?> Expected result: ---------------- The database should have the correct data inserted into it. Actual result: -------------- Only partial data is inserted into DB2.