From: David King Landrith Date: 2003-02-07T02:06:18+09:00 Subject: Bug in dbd_mysql --Apple-Mail-12--328031671 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed 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? 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 --Apple-Mail-12--328031671 content-type: application/pgp-signature; x-mac-type=70674453; name=PGP.sig content-disposition: inline content-transfer-encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (Darwin) iD8DBQE+QpX6Rdirey0+rJARAv5BAJ9CIhIWKAd13m0gQnZB9uX3si2XQwCfXLuw AG7ayU+Cwp/4T8uz8e1YQqk= =+67k -----END PGP SIGNATURE----- --Apple-Mail-12--328031671--