You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
MCOL-1885 Fix libmysql error handling
If an error occurs in mysql_real_query() it fell through and tried to get a result set anyway. This caused the MariaDB error message to be forgotten and a generic one returned instead. This fix returns the query error message and also uses the int error code for generic errors instead of casting it to an unsigned int.
This commit is contained in:
@ -38,7 +38,7 @@ public:
|
||||
// run the query
|
||||
int run(const char* q);
|
||||
|
||||
void handleMySqlError(const char*, unsigned int);
|
||||
void handleMySqlError(const char*, int);
|
||||
|
||||
MYSQL* getMySqlCon()
|
||||
{
|
||||
|
Reference in New Issue
Block a user