How to determine connection options

How to determine connection options

am 28.10.2003 17:49:17 von Steve Hay

Is there any way to determine what options were specified when the dbh
was created?

I would like to be able to do something like

$mysql_client_found_rows = $dbh->{'mysql_client_found_rows'};
$mysql_connect_timeout = $dbh->{'mysql_connect_timeout'};

but these are not supported.

- Steve


--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org

Re: How to determine connection options

am 28.10.2003 21:22:45 von Jochen Wiedmann

Steve Hay wrote:

> Is there any way to determine what options were specified when the dbh
> was created?

Currently no. But why not just store the dbh's in a hash ref, which is
maintained by the code opening and closing the connections? The hash values
might be the DSN's or whatever you use to specify the options.


Jochen


--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org

Re: How to determine connection options

am 28.10.2003 21:22:45 von Jochen Wiedmann

Steve Hay wrote:

> Is there any way to determine what options were specified when the dbh
> was created?

Currently no. But why not just store the dbh's in a hash ref, which is
maintained by the code opening and closing the connections? The hash values
might be the DSN's or whatever you use to specify the options.


Jochen


--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org