From 0c59e4e5e727185d90704da72afd3ace4bc93cdd Mon Sep 17 00:00:00 2001 From: rfm Date: Wed, 22 Jul 2015 15:41:58 +0000 Subject: [PATCH] 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 --- SQLClientPool.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SQLClientPool.m b/SQLClientPool.m index 500d8f2..d107bf7 100644 --- a/SQLClientPool.m +++ b/SQLClientPool.m @@ -221,7 +221,8 @@ [_lock lock]; 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 found = index;