From: Michael N. <mne...@us...> - 2002-10-25 17:35:24
|
Update of /cvsroot/ruby-dbi/src/lib/dbd_pg In directory usw-pr-cvs1:/tmp/cvs-serv5573 Modified Files: Pg.rb Log Message: rollback transactions on disconnect Index: Pg.rb =================================================================== RCS file: /cvsroot/ruby-dbi/src/lib/dbd_pg/Pg.rb,v retrieving revision 1.29 retrieving revision 1.30 diff -u -r1.29 -r1.30 --- Pg.rb 22 Oct 2002 14:53:07 -0000 1.29 +++ Pg.rb 25 Oct 2002 12:48:37 -0000 1.30 @@ -114,7 +114,7 @@ def disconnect if not @attr['AutoCommit'] and @in_transaction - @connection.exec("COMMIT") # commit outstanding transactions + @connection.exec("ROLLBACK") # rollback outstanding transactions end @connection.close end |