From: Paul D. <pd...@us...> - 2003-02-08 01:37:55
|
Update of /cvsroot/ruby-dbi/src/lib/dbd_mysql In directory sc8-pr-cvs1:/tmp/cvs-serv8541 Modified Files: Mysql.rb Log Message: port and flag connection parameters must be passed as numbers Index: Mysql.rb =================================================================== RCS file: /cvsroot/ruby-dbi/src/lib/dbd_mysql/Mysql.rb,v retrieving revision 1.17 retrieving revision 1.18 diff -u -r1.17 -r1.18 --- Mysql.rb 8 Feb 2003 00:37:20 -0000 1.17 +++ Mysql.rb 8 Feb 2003 01:37:51 -0000 1.18 @@ -58,6 +58,10 @@ hash['host'] ||= 'localhost' + # these two connection parameters should be passed as numbers + hash['port'] = hash['port'].to_i unless hash['port'].nil? + hash['flag'] = hash['flag'].to_i unless hash['flag'].nil? + handle = ::Mysql.connect(hash['host'], user, auth, hash['database'], hash['port'], hash['socket'], hash['flag']) #handle.select_db(hash['database']) |