Re: DBD::mysql and mysql_use_result

Alan Burlison <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.dbi.general,gmane.comp.db.mysql.perl
Message-ID <[email protected]>
Alexey Stroganov wrote:

> It was already implemented in my tree with the same behaviour as for 
> 'mysql_server_prepare' attribute:
> 
>  - attribute 'mysql_use_result' on dbh level, this allows to
>    enable/disable mode for all new statements:
> 
>      - DBI->connect("DBI:mysql:test;mysql_use_result=1", "root", "");
> 
>      - $dbh->{'mysql_use_result'}=0; #disable
>        $dbh->{'mysql_use_result'}=1; #enable
> 
>      When new sth is created we set default value of attribute 
>      'mysql_use_result' from $dbh. One can override the default 
>      value:
>     
>      - $sth=$dbh->prepare(statement, {'mysql_use_result' => 1});
> 
>      - $sth->{'mysql_use_result'}=0; #disable
>        $sth->{'mysql_use_result'}=1; #enable

Oooh, I'd *love* a copy, pretty please ;-)

What does 'mysql_server_prepare' do BTW, I can't find it in the docs?

-- 
Alan Burlison
--
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.