Re: DBD::mysql and mysql_use_result

Rudy Lippan <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.dbi.general,gmane.comp.db.mysql.perl
Message-ID <[email protected]>
On Fri, 6 Aug 2004, Alan Burlison wrote:

> I'm not sure of the best way to go about this, there are two options:
> 
> 1. Store the value in the DBH and copy into the STH when the STH is 
> created, unless the STD constructor is given an explicit value.
> 
> 2. Store the value in the DBH and each time the STH is executed, look up 
> the value in the parent DBH if the STH doesn't have an explicit value.
> 

I'd go with option #1, and I would not let the value of mysqLstore_results be
changed after prepare.  This is the planned behaviour with prepared statements.

> One other question - how do I get the parent DBH from a STH from within 
> the XS code for a DBD driver?
> 

Assuming SV *sth:

D_imp_dbh_from_sth;


Rudy
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.