mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Change update_auto_increment to return 1 if get_auto_increment() returned ~(ulonglong)
This makes it easier to give an error in the handler if there was a problem generating an auto-increment value mysys/thr_alarm.c: Remove warning from valgrind sql/item_strfunc.cc: Fixed indentation tests/mysql_client_test.c: Removed compiler warning
This commit is contained in:
@ -787,6 +787,7 @@ static void verify_field_count(MYSQL_RES *result, uint exp_count)
|
||||
|
||||
/* Utility function to execute a query using prepare-execute */
|
||||
|
||||
#ifndef EMBEDDED_LIBRARY
|
||||
static void execute_prepare_query(const char *query, ulonglong exp_count)
|
||||
{
|
||||
MYSQL_STMT *stmt;
|
||||
@ -807,7 +808,7 @@ static void execute_prepare_query(const char *query, ulonglong exp_count)
|
||||
DIE_UNLESS(affected_rows == exp_count);
|
||||
mysql_stmt_close(stmt);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
/* Store result processing */
|
||||
|
||||
|
Reference in New Issue
Block a user