mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Fix crash in Ido*Connection::InternalExecuteMultipleQueries
fixes #10862
This commit is contained in:
parent
ef8ba6e275
commit
346c0cbb3c
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user