mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 13:45:04 +02:00
Merge pull request #6530 from Icinga/bugfix/query-was-empty
IDO/MySQL: avoid empty queries
This commit is contained in:
commit
ba21a54443
@ -519,11 +519,12 @@ void IdoMysqlConnection::FinishAsyncQueries()
|
|||||||
|
|
||||||
size_t size_query = aq.Query.GetLength() + 1;
|
size_t size_query = aq.Query.GetLength() + 1;
|
||||||
|
|
||||||
if (num_bytes + size_query > m_MaxPacketSize - 512)
|
if (count > 0) {
|
||||||
break;
|
if (num_bytes + size_query > m_MaxPacketSize - 512)
|
||||||
|
break;
|
||||||
|
|
||||||
if (count > 0)
|
|
||||||
querybuf << ";";
|
querybuf << ";";
|
||||||
|
}
|
||||||
|
|
||||||
IncreaseQueryCount();
|
IncreaseQueryCount();
|
||||||
count++;
|
count++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user