Re: PDO - Cannot retrieve warnings with emulated prepares disabled [message #183510 is a reply to message #183508] |
Tue, 29 October 2013 12:58 |
Jerry Stuckle
Messages: 2598 Registered: September 2010
Karma:
|
Senior Member |
|
|
On 10/29/2013 8:31 AM, Thomas Mlynarczyk wrote:
> Thomas 'PointedEars' Lahn schrieb:
<snip>
>> PDO::ATTR_EMULATE_PREPARES == false should be the effective default
>> for PDO_MySQL unless you are using an ancient MySQL version (why?)
>> that does not support Prepared Statements.
>
> My MySQL version does support them. Still, PDO's default seems to be
> "on" for the emulation.
>
> Greetings,
> Thomas
>
Thomas,
I could be wrong, but from my experience, the mysql driver has never
supported prepared statements, while the mysqli driver has always
supported them. This is why PDO has to emulate the prepared statements.
If you disable emulation with a mysql connection, I would expect errors
in the execution. What is the return value from your prepare() and
execute() calls?
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
|
|
|