FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » PDO - Cannot retrieve warnings with emulated prepares disabled
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: PDO - Cannot retrieve warnings with emulated prepares disabled [message #183510 is a reply to message #183508] Tue, 29 October 2013 12:58 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  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
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: splitting list into columns
Next Topic: reading files with accents in the filename from PHP
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Sep 19 22:14:55 GMT 2024

Total time taken to generate the page: 0.04495 seconds