| List: | MySQL and Perl | « Previous MessageNext Message » | |
| From: | Rudy Lippan | Date: | August 6 2004 3:04pm |
| Subject: | Re: DBD::mysql and mysql_use_result | ||
| View as plain text | |||
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
| Thread | ||
|---|---|---|
| • DBD::mysql and mysql_use_result | Alan Burlison | 6 Aug |
| • Re: DBD::mysql and mysql_use_result | Jochen Wiedmann | 6 Aug |
| • Re: DBD::mysql and mysql_use_result | Patrick Galbraith | 9 Aug |
| • Re: DBD::mysql and mysql_use_result | Rudy Lippan | 6 Aug |
| • Re: DBD::mysql and mysql_use_result | Tim Bunce | 6 Aug |
| • Re: DBD::mysql and mysql_use_result | Alan Burlison | 6 Aug |
| • Re: DBD::mysql and mysql_use_result | Patrick Galbraith | 9 Aug |
| • Re: DBD::mysql and mysql_use_result | Rudy Lippan | 10 Aug |
| • Re: DBD::mysql and mysql_use_result | Tim Bunce | 12 Aug |
| • Re: DBD::mysql and mysql_use_result | Alan Burlison | 14 Aug |
| • Re: DBD::mysql and mysql_use_result | Tim Bunce | 17 Aug |
| • Re: DBD::mysql and mysql_use_result | Patrick Galbraith | 18 Aug |
| • Re: DBD::mysql and mysql_use_result | Tim Bunce | 7 Aug |
| • Re: DBD::mysql and mysql_use_result | Patrick Galbraith | 9 Aug |
| • Re: DBD::mysql and mysql_use_result | Alan Burlison | 9 Aug |
