|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-05-16 16:25 UTC] kraman at gmail dot com
[2006-05-19 08:48 UTC] vlads at krediidiinfo dot ee
[2006-05-19 08:49 UTC] vlads at krediidiinfo dot ee
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 22:00:01 2025 UTC |
Description: ------------ $db = new PDO('informix:database=krediit; server=db_krediit; protocol=onsoctcp; EnableScrollableCursors=1', 'usr', 'pwd'); $db->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION ); $db->setAttribute( PDO::ATTR_CASE, PDO::CASE_LOWER ); $stmt = $db->prepare('select data from bkaart_xml where eregnr = ?'); $stmt->execute(array("10256137")); $stmt->bindColumn(1, $bkaart_data, PDO::PARAM_LOB); $row = $stmt->fetch(PDO::FETCH_BOUND); echo '<pre>'; echo htmlentities($bkaart_data); echo '</pre>'; The data size in the blob column is 58759 bytes. I get the same result also with streams. PHP Version I use is 5.1.4 (can't select this version in reporting form!), IDS 10.00UC4, CSDK 2.90.UC4 (Did not work with previous versions either). I think something is wrong with the drivers internal buf size. Expected result: ---------------- Value contained in blob column Actual result: -------------- Some part of the value contained in blob column, but it is truncated and contains garbage in the end