note 68413 added to function.pdo-setattribute

From: Date: Wed, 26 Jul 2006 01:44:04 +0000
Subject: note 68413 added to function.pdo-setattribute
Groups: php.notes 
Request: Send a blank email to php-notes+get-115197@lists.php.net to get a copy of this message
Hi, if you are wondering about a size-bound (1 MB) on blob and text fields after upgrading to PHP5.1.4. You might try to increase this limit by using the setAttribute() method. This will fail. Instead use the options array when instantiating the pdo: $pdo = new PDO ("connection_settings", "user", "pass", array (PDO::MYSQL_ATTR_MAX_BUFFER_SIZE=>1024*1024*50)); This should fix the problem and increase the limit to 50 MB. Bye, Matthias ---- Server IP: 217.160.72.57 Probable Submitter: 212.66.148.215 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.pdo-setattribute.php Edit -- http://master.php.net/note/edit/68413 Del: integrated -- http://master.php.net/note/delete/68413/integrated Del: useless -- http://master.php.net/note/delete/68413/useless Del: bad code -- http://master.php.net/note/delete/68413/bad+code Del: spam -- http://master.php.net/note/delete/68413/spam Del: non-english -- http://master.php.net/note/delete/68413/non-english Del: in docs -- http://master.php.net/note/delete/68413/in+docs Del: other reasons-- http://master.php.net/note/delete/68413 Reject -- http://master.php.net/note/reject/68413 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#115197) next »