mirror of
https://github.com/Icinga/icinga2.git
synced 2026-06-08 16:26:42 -04:00
IDO/MySQL: avoid empty queries
This commit is contained in:
parent
8bac1dc99e
commit
7a31cd4fe7
1 changed files with 4 additions and 3 deletions
|
|
@ -519,11 +519,12 @@ void IdoMysqlConnection::FinishAsyncQueries()
|
|||
|
||||
size_t size_query = aq.Query.GetLength() + 1;
|
||||
|
||||
if (num_bytes + size_query > m_MaxPacketSize - 512)
|
||||
break;
|
||||
if (count > 0) {
|
||||
if (num_bytes + size_query > m_MaxPacketSize - 512)
|
||||
break;
|
||||
|
||||
if (count > 0)
|
||||
querybuf << ";";
|
||||
}
|
||||
|
||||
IncreaseQueryCount();
|
||||
count++;
|
||||
|
|
|
|||
Loading…
Reference in a new issue