mirror of
https://github.com/gnustep/libs-sqlclient.git
synced 2025-02-21 19:01:03 +00:00
don't re-use a connection if it is in a transaction
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/sqlclient/trunk@38830 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
fa29176874
commit
0c59e4e5e7
1 changed files with 2 additions and 1 deletions
|
@ -221,7 +221,8 @@
|
||||||
[_lock lock];
|
[_lock lock];
|
||||||
for (index = 0; index < _max; index++)
|
for (index = 0; index < _max; index++)
|
||||||
{
|
{
|
||||||
if (_items[index].o == thread && _items[index].u < NSNotFound)
|
if (_items[index].o == thread && _items[index].u < NSNotFound
|
||||||
|
&& NO == [_items[index].c isInTransaction])
|
||||||
{
|
{
|
||||||
connected = -1; // Ignore any other connected client
|
connected = -1; // Ignore any other connected client
|
||||||
found = index;
|
found = index;
|
||||||
|
|
Loading…
Reference in a new issue