Fix crash in Ido*Connection::InternalExecuteMultipleQueries

fixes #10862
This commit is contained in:
Gunnar Beutner 2015-12-16 11:29:06 +01:00
parent 30b13ba2d6
commit 6a8f97f6ef
2 changed files with 6 additions and 0 deletions

View File

@ -813,6 +813,9 @@ void IdoMysqlConnection::InternalExecuteMultipleQueries(const std::vector<DbQuer
{
AssertOnWorkQueue();
if (!GetConnected())
return;
BOOST_FOREACH(const DbQuery& query, queries) {
ASSERT(query.Category != DbCatInvalid);

View File

@ -691,6 +691,9 @@ void IdoPgsqlConnection::InternalExecuteMultipleQueries(const std::vector<DbQuer
{
AssertOnWorkQueue();
if (!GetConnected())
return;
BOOST_FOREACH(const DbQuery& query, queries) {
ASSERT(query.Category != DbCatInvalid);