On Wed, May 5, 2010 at 1:51 PM, Chris Meller <[email protected]> wrote:
> So to sum up:
>
> It's not needed for Postgres, since it supports prepared statements, so we 
> don't know why it was added to databaseconnection.php in the big Postgres 
> commit (r3530).

I only found one reference about using it in PG that had to do with
data types. But since mysql (other than mysqlnd) doesn't do types
properly, it's of no concern to us.

> It is needed for MySQL (which we knew), but we're not sure if the one in 
> mysql/connection.php in the connect() method is enough or if it actually 
> needs to be applied to each query?

It only needs to be in connect. And to be clear, MySQL supports
prepared statements without it, the ONLY reason it is there (for us),
is to enable qcache to work with prepared statements. There are other
reason to use it for queries like SHOW TABLES in prepared statements,
but the main reason is qcache.

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/habari-dev

Reply via email to