8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 09:23:03 +01:00

Backported recent Vlad's bugfix.

This commit is contained in:
dimitr 2010-07-13 07:10:23 +00:00
parent 10aa0ae917
commit c5edc55b7c

View File

@ -403,7 +403,7 @@ Statement* Connection::createStatement(const string& sql)
}
}
if (m_freeStatements)
if (m_free_stmts >= MAX_CACHED_STMTS)
{
Statement* stmt = m_freeStatements;
m_freeStatements = stmt->m_nextFree;