From 24e266409adb40014dbb4960f5cdd4bf1134f6ad Mon Sep 17 00:00:00 2001 From: prabatuty Date: Sat, 9 Apr 2011 17:15:32 +0000 Subject: [PATCH] statement caching fixw --- src/sql/SqlStatement.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sql/SqlStatement.cxx b/src/sql/SqlStatement.cxx index 7b2afb58..bc91ba8f 100644 --- a/src/sql/SqlStatement.cxx +++ b/src/sql/SqlStatement.cxx @@ -822,8 +822,8 @@ void SqlConnection::flushCacheStmt() //do not delete when the statement is currently in use. //otherwise it leads to illegal memory access when application //calls any method on this statement - //if (node->inUse) continue; - if (node->inUse) node->inUse = 0; + if (node->inUse) continue; + //if (node->inUse) node->inUse = 0; free(node->sqlString); node->sqlStmt->setCachedStmt(false); node->sqlStmt->free(); -- 2.11.4.GIT