Update of /cvsroot/ruby-dbi/src/lib/dbd_mysql
In directory sc8-pr-cvs1:/tmp/cvs-serv21377
Modified Files:
Mysql.rb
Log Message:
Do not force user to provide database name when connecting
Index: Mysql.rb
===================================================================
RCS file: /cvsroot/ruby-dbi/src/lib/dbd_mysql/Mysql.rb,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- Mysql.rb 26 Sep 2002 18:37:27 -0000 1.16
+++ Mysql.rb 8 Feb 2003 00:37:20 -0000 1.17
@@ -52,9 +52,9 @@
# connect to database
hash = Utils.parse_params(dbname)
- if hash['database'].nil?
- raise DBI::InterfaceError, "must specify database"
- end
+ #if hash['database'].nil?
+ # raise DBI::InterfaceError, "must specify database"
+ #end
hash['host'] ||= 'localhost'
|