Package: libmysql-ruby1.8
Version: 2.7.1-1
Severity: serious

Hi,

With libmysql-ruby1.8 2.7.1-1 (version in testing), with:
----------------
require 'dbi'
dbh = DBI.connect('DBI:MSQL:db','user','password')
dbh.select_all('SELECT clusterName, count(*)/2 from clusters group by
clusterName') { |r| p r }
----------------
I get (on i386):
----------------
/usr/lib/ruby/1.8/DBD/Mysql/Mysql.rb:649:in `column_info': undefined method 
`[]' for nil:NilClass (NoMethodError)
        from /usr/lib/ruby/1.8/DBD/Mysql/Mysql.rb:648:in `each'
        from /usr/lib/ruby/1.8/DBD/Mysql/Mysql.rb:648:in `column_info'
        from /usr/lib/ruby/1.8/DBD/Mysql/Mysql.rb:573:in `execute'
        from /usr/lib/ruby/1.8/thread.rb:135:in `synchronize'
        from /usr/lib/ruby/1.8/DBD/Mysql/Mysql.rb:570:in `execute'
        from /usr/lib/ruby/1.8/dbi.rb:893:in `execute'
        from /usr/lib/ruby/1.8/dbi.rb:480:in `execute'
        from /usr/lib/ruby/1.8/dbi.rb:511:in `select_all'
----------------
Instead of:
----------------
["sagittaire", "0.5000"]
----------------

This is caused by the fact that libmysql-ruby1.8 2.7.1-1 was compiled against
an old version of libmysqlclient*-dev, missing types for some float fields
(count(*)/2 generates a float).

Rebuilding the package fixes the problem, so a binNMU should be enough.  I'm
not sure if all archs are affected, or just i386 (the package was built and
uploaded on i386 by the maintainer).

The version in unstable (2.7.3-1) is not affected.

I have not tried to reproduce this problem directly with libmysql-ruby (I'm
using DBI).
-- 
| Lucas Nussbaum
| [EMAIL PROTECTED]   http://www.lucas-nussbaum.net/ |
| jabber: [EMAIL PROTECTED]             GPG: 1024D/023B3F4F |


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to