Subject: | Compatibility issues |
I've been testing DBIx::MyServer 0.41 using Perl 5.8.8 on Ubuntu, and
have found a few issues.
The first is a simple typo - in line 774
my $charset = defined $myserver->[MYSERVER_SERVER_CHARSET] ?
chr($myserver->[MYSERVER_SERVER_CHARSET]) : 0x21; # latin1
the 0x21 should be chr(0x21) - otherwise you get the string "33"
appearing in the message, rather than 0x21.
The second is a compatibility issue with the JDBC client - it needs the
salt to be composed of printable characters. In line 493
$myserver->[MYSERVER_SALT] = join('',map { chr(int(rand(255))) } (1..20));
I need to use chr(33+rand(94)).
Finally, again with the JDBC client, I need to use
defined $_ ? $myserver->_lengthCodedBinary(length($_)).$_ : chr(0)
instead of
$myserver->_lengthCodedString($_)
in line 635, or it scrambles the field names.
Otherwise, it's working a treat - many thanks.