At 2:06 +0900 2/7/03, David King Landrith wrote: >There is a bug in the dbd_mysql package. > >When I specify a port in the connection (as follows): > >DBI.connect('DBI:Mysql:database=dbName;host=hostName;port=3307', 'username') > >I get the following error: > >/usr/local/lib/ruby/site_ruby/1.6/DBD/Mysql/Mysql.rb:61:in >`connect': no implicit conversion from string (TypeError) > >Line 61 of DBD/Mysql/Mysql.rb reads: > >handle = ::Mysql.connect(hash['host'], user, auth, hash['database'], >hash['port'], hash['socket'], hash['flag']) > >The error is fixed by changing line 61 as follows: > >handle = ::Mysql.connect(hash['host'], user, auth, hash['database'], >hash['port'].to_i, hash['socket'], hash['flag']) > >My question is, I've reported the bug. What else do I need to do to >get this fix incorporated into the dbi source? It'll be fixed soon. Note that hash['flag'] also needs a .to_i or you'll get the same exception if you pass a flag value. >Best, > >Dave > >------------------------------------------------------- >David King Landrith > (w) 617.227.4469x213 > (h) 617.696.7133 > >One useless man is a disgrace, two >are called a law firm, and three or more >become a congress -- John Adams >------------------------------------------------------- >public key available upon request