On Sun, Feb 22, 2004 at 04:57:31PM -0000, Greg Sabino Mullane wrote:
> 
> PostgreSQL has recently added a true server-side prepare, which
> raises some issues in regards to the prepare/execute DBI model.
> Our initial thought was simply to use the new prepare/execute
> when it was available on the backend, and keep everything
> transparent to the user. However, there are cases where a
> local (or non server-prepared) prepare is preferred, so we need
> to allow both. One idea I had, which Rudy Lippan also thought
> of for DBD::mysql, is to have a global and a local flag to toggle
> between the two. The global can be set at connect and resides
> at the $dbh level. The local is an extra attrib send to the
> prepare() method, which would override the global method.

Yeap. That would be my preferred approach.

Tim.

Reply via email to