|
|
Choosing A Webhost: |
CVS update of carob/src (Connection.cpp): msg#00035db.carob.cvs
Date: Friday, February 10, 2006 @ 09:54:24 Author: gilles Path: /cvsroot/carob/carob/src Modified: Connection.cpp (1.61 -> 1.62) Check if we are not committing or rollbacking an empty transaction (reflected SEQUOIA-289 fix) ----------------+ Connection.cpp | 9 +++++++++ 1 files changed, 9 insertions(+) Index: carob/src/Connection.cpp diff -u carob/src/Connection.cpp:1.61 carob/src/Connection.cpp:1.62 --- carob/src/Connection.cpp:1.61 Fri Feb 10 09:49:49 2006 +++ carob/src/Connection.cpp Fri Feb 10 09:54:24 2006 @@ -419,6 +419,11 @@ { throw DriverException(L"Trying to commit a connection in autocommit mode"); } + + // Check if we are not committing an empty transaction (not started yet) + if (mustBeginTransaction) + return; + try { sendCommand(*driverSocketPtr, Commit); @@ -484,6 +489,10 @@ throw DriverException(L"Trying to rollback a connection in autocommit mode"); } + // Check if we are not rollbacking an empty transaction (not started yet) + if (mustBeginTransaction) + return; + try { sendCommand(*driverSocketPtr, Rollback);
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | CVS update of carob (include/Connection.hpp src/Connection.cpp), gilles-Tt5JLJuBijYiZlD9aYmxOGD2FQJk+8+b |
|---|---|
| Next by Date: | CVS update of libmysequoia (README), csaba-Tt5JLJuBijYiZlD9aYmxOGD2FQJk+8+b |
| Previous by Thread: | CVS update of carob (include/Connection.hpp src/Connection.cpp), gilles-Tt5JLJuBijYiZlD9aYmxOGD2FQJk+8+b |
| Next by Thread: | CVS update of carob/src (Connection.cpp), gilles-Tt5JLJuBijYiZlD9aYmxOGD2FQJk+8+b |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |
Home
| advertise | OSDir is
an inevitable website.
|