Hi Folks

1) Under 'synopsis', it says:
@data_sources = DBI->data_sources($driver_name, \%attr, $dbh);
however that combination of options is not listed under the discussion of 
data_sources().
Anyway, I tried DBI -> data_sources('mysql')
and got an empty list. Sigh.
I tried DBI -> data_sources('mysql', {}, $dbh)
and got:
Undefined subroutine &DBD::mysql::db::SQL_VARCHAR called at 
C:/Perl/site/lib//DBD/mysql.pm line 337.

2) Under 'data_sources', it says:
A $dbh can also be used as the $driver argument.
I tried DBI -> data_sources($dbh)
and DBI -> data_sources($dbh, {})
and both got:
usage: DBI->install_driver($driver [, %attr]) at 
C:/Perl/site/lib//Local/Application.pm line 951

So, can data_sources be made to work usefully under DBD::mysql?
--
Cheers
Ron Savage, [EMAIL PROTECTED] on 4/01/2004
http://savage.net.au/index.html

Reply via email to