You've already forked mariadb-connector-c
mirror of
https://github.com/mariadb-corporation/mariadb-connector-c.git
synced 2025-08-07 02:42:49 +03:00
fix bug CONC-400 error with sizeof("commit") in function mysql_commit
This commit is contained in:
@@ -3351,12 +3351,12 @@ my_bool STDCALL mysql_autocommit(MYSQL *mysql, my_bool mode)
|
|||||||
|
|
||||||
my_bool STDCALL mysql_commit(MYSQL *mysql)
|
my_bool STDCALL mysql_commit(MYSQL *mysql)
|
||||||
{
|
{
|
||||||
return((my_bool)mysql_real_query(mysql, "COMMIT", (unsigned long) sizeof("COMMIT")));
|
return((my_bool)mysql_real_query(mysql, "COMMIT", (unsigned long)strlen("COMMIT")));
|
||||||
}
|
}
|
||||||
|
|
||||||
my_bool STDCALL mysql_rollback(MYSQL *mysql)
|
my_bool STDCALL mysql_rollback(MYSQL *mysql)
|
||||||
{
|
{
|
||||||
return((my_bool)mysql_real_query(mysql, "ROLLBACK", (unsigned long)sizeof("ROLLBACK")));
|
return((my_bool)mysql_real_query(mysql, "ROLLBACK", (unsigned long)strlen("ROLLBACK")));
|
||||||
}
|
}
|
||||||
|
|
||||||
my_ulonglong STDCALL mysql_insert_id(MYSQL *mysql)
|
my_ulonglong STDCALL mysql_insert_id(MYSQL *mysql)
|
||||||
|
Reference in New Issue
Block a user