LoonyPandora / Dancer-Session-DBI

Dancer-Session-DBI
1 stars 4 forks source link

check mysql version failed #7

Open bogdanovmn opened 10 years ago

bogdanovmn commented 10 years ago

My virtual hosting give me mysql server 5* version: Server version: 5.1.49-rel11.3-log Percona Server (GPL), 11.3, Revision 110

but this check:

if ($self->_dbh->{mysql_serverversion} < 40101) { die "A minimum of MySQL 4.1.1 is required"; }

failed, because $self->_dbh->{mysql_serverversion} is empty

fix it plz, or use param for ignore this check...

LoonyPandora commented 10 years ago

If it's empty, it's quite likely that your version of DBD::mysql is out of date.

Can you see what version you have installed of DBD::mysql with the following command:

perl -MDBD::mysql -e 'print "$DBD::mysql::VERSION\n";'

If it is less than 4.018, then you need to upgrade it, as that is when the mysql_serverversion variable was introduced

If that is the case, I will release a new version with a clearer error message.

bogdanovmn commented 10 years ago

it is 4.013

update module is problem for my hoster :)

thank you for the fast answer, now I commented in place this check, and it work, but it is not good for perspective...