Subject: | Use of uninitialized value if connection fails |
Date: | Wed, 11 Nov 2015 14:52:45 +0000 |
To: | bug-DBIx-Class [...] rt.cpan.org |
From: | Gareth Tunley <gjtunley [...] gmail.com> |
Hi,
Not sure if this is a bug with DBD::mysql or with DBIx::Class so raising
against DBIx::Class first due to the warnings mentioning
DBIx::Class::Storage::DBI::mysql
Using DBIx::Class 0.082820 and DBD::mysql 4.033 get the following warnings
if DBIx::Class cannot connect to the destination server (in this case
because I mistyped the IP address in the connection string):
Use of uninitialized value $mysql_ver in numeric lt (<) at
/usr/local/share/perl/5.18.2/DBIx/Class/Storage/DBI/mysql.pm line 117.
Use of uninitialized value $mysql_ver in numeric lt (<) at
/usr/local/share/perl/5.18.2/DBIx/Class/Storage/DBI/mysql.pm line 117.
DBIx::Class::Storage::DBI::catch {...} (): DBI Connection failed: DBI
connect('database=xyz;host=x.x.x.x','x',...) failed: Can't connect to MySQL
server on 'x.x.x.x' (111) at
/usr/local/share/perl/5.18.2/DBIx/Class/Storage/DBI.pm line 1489. at ./
my_script.pl line 123
Thanks
Gareth
--
Gareth Tunley - gjtunley@gmail.com