ID:              42588
 User updated by: dhall at wustl dot edu
 Reported By:     dhall at wustl dot edu
-Status:          No Feedback
+Status:          Open
 Bug Type:        PDO related
 PHP Version:     5CVS-2007-09-07 (snap)
 New Comment:

reopened at the request of mr-russ


Previous Comments:
------------------------------------------------------------------------

[2008-11-17 09:44:34] mr-russ at pws dot com dot au

Adding the suggested parameter makes no different, the selected output
is still smaller than the input.

The following are the options I had added to the connection;
array( PDO::ATTR_EMULATE_PREPARES => false,
PDO::MYSQL_ATTR_INIT_COMMAND=>'SET CHARACTER SET utf8;',
PDO::MYSQL_ATTR_MAX_BUFFER_SIZE=>4194304 )

The octet_length in the mysql cli returns the incorrect value.  So it's
the insert side that is having problems.

Adding PDO::MYSQL_ATTR_DIRECT_QUERY=>true to the constant list does not
help either.

------------------------------------------------------------------------

[2008-09-23 01:00:00] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

------------------------------------------------------------------------

[2008-09-15 13:28:15] [EMAIL PROTECTED]

I guess you're using emulated Prepared Statments, in that case PDO will
try to inject the binary data in the query, sett
PDO::ATT_EMULATE_PREPARES to false.

(it works with latin charsets since they ore 8byte charsets, whereas
utf-8 is multibyte)

------------------------------------------------------------------------

[2008-07-14 13:11:20] s dot urbanovski at ac-nancy-metz dot fr

Same problem on Debian Lenny (PHP 5.2.6-2).
I'm unable to insert LOB data if I'm using the utf-8 encoding (SET
CHARACTER SET utf8; ). Some caracters are converted to 0x3F.

------------------------------------------------------------------------

[2007-09-07 15:43:19] dhall at wustl dot edu

PS.
If you remove the SET CHARACTER SET UTF-8 stuff, it works.  I don't see
why that should screw up pdo sending in lobs though.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/42588

-- 
Edit this bug report at http://bugs.php.net/?id=42588&edit=1

Reply via email to