1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-04 04:42:30 +03:00

MCOL 2072 Query Stats supress warning when calling libmysql::run

This commit is contained in:
jmrojas2332
2019-11-19 14:07:47 +00:00
committed by Andrew Hutchings
parent 69e7880358
commit 1c0afc95bc
3 changed files with 4 additions and 4 deletions

View File

@ -96,7 +96,7 @@ int LibMySQL::init(const char* h, unsigned int p, const char* u, const char* w,
}
int LibMySQL::run(const char* query)
int LibMySQL::run(const char* query, bool resultExpected)
{
int ret = 0;
@ -109,7 +109,7 @@ int LibMySQL::run(const char* query)
fRes = mysql_use_result(fCon);
if (fRes == NULL)
if (fRes == NULL && resultExpected)
{
fErrStr = "fatal error running mysql_use_result() or empty result set in libmysql_client lib";
ret = -1;