mirror of https://github.com/Icinga/icinga2.git
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…
Reference in New Issue