Update of /cvsroot/ruby-dbi/src/lib/dbd_mysql
In directory sc8-pr-cvs1:/tmp/cvs-serv13102/lib/dbd_mysql
Modified Files:
Mysql.rb
Log Message:
Modify transaction support to use self.do rather than @handler.query
so that query execution is routed through the mutex.
Index: Mysql.rb
===================================================================
RCS file: /cvsroot/ruby-dbi/src/lib/dbd_mysql/Mysql.rb,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- Mysql.rb 8 Feb 2003 02:03:16 -0000 1.20
+++ Mysql.rb 2 Apr 2003 15:42:52 -0000 1.21
@@ -272,7 +272,7 @@
def commit
if @have_transactions
- @handle.query("COMMIT")
+ self.do("COMMIT")
else
raise NotSupportedError
end
@@ -282,7 +282,7 @@
def rollback
if @have_transactions
- @handle.query("ROLLBACK")
+ self.do("ROLLBACK")
else
raise NotSupportedError
end
@@ -306,7 +306,7 @@
case attr
when 'AutoCommit'
if @have_transactions
- @handle.query("SET AUTOCOMMIT=" + (value ? "1" : "0"))
+ self.do("SET AUTOCOMMIT=" + (value ? "1" : "0"))
else
raise NotSupportedError
end
|