You've already forked mariadb-columnstore-engine
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:
committed by
Andrew Hutchings
parent
69e7880358
commit
1c0afc95bc
@ -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;
|
||||
|
Reference in New Issue
Block a user