mirror of
https://github.com/gnustep/libs-sqlclient.git
synced 2025-02-19 01:50:49 +00:00
debug logging fix.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/sqlclient/trunk@25306 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7332e2539a
commit
3dea330f47
2 changed files with 10 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2007-07-07 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* SQLClient.m: Fix error causing loss of some debug output when an
|
||||
exception occurs in a transaction.
|
||||
|
||||
2007-04-01 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* SQLClient.h:
|
||||
|
|
|
@ -1076,12 +1076,14 @@ static unsigned int maxConnections = 8;
|
|||
{
|
||||
[self simpleExecute: commitStatement];
|
||||
_inTransaction = NO;
|
||||
[_statements removeAllObjects];
|
||||
[lock unlock]; // Locked at start of -commit
|
||||
[lock unlock]; // Locked by -begin
|
||||
}
|
||||
NS_HANDLER
|
||||
{
|
||||
_inTransaction = NO;
|
||||
[_statements removeAllObjects];
|
||||
[lock unlock]; // Locked at start of -commit
|
||||
[lock unlock]; // Locked by -begin
|
||||
[localException raise];
|
||||
|
@ -1557,6 +1559,7 @@ static unsigned int maxConnections = 8;
|
|||
if (_inTransaction == YES)
|
||||
{
|
||||
_inTransaction = NO;
|
||||
[_statements removeAllObjects];
|
||||
NS_DURING
|
||||
{
|
||||
[self simpleExecute: rollbackStatement];
|
||||
|
@ -1716,14 +1719,14 @@ static unsigned int maxConnections = 8;
|
|||
}
|
||||
}
|
||||
}
|
||||
if (_inTransaction == NO || isCommit || isRollback)
|
||||
if (_inTransaction == NO)
|
||||
{
|
||||
[_statements removeAllObjects];
|
||||
}
|
||||
}
|
||||
NS_HANDLER
|
||||
{
|
||||
if (_inTransaction == NO || isCommit || isRollback)
|
||||
if (_inTransaction == NO)
|
||||
{
|
||||
[_statements removeAllObjects];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue