summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authormonty@mysql.com <>2005-05-18 10:41:35 +0300
committermonty@mysql.com <>2005-05-18 10:41:35 +0300
commitc1b512fad37d2044a4e575436372ae1fbf365583 (patch)
tree0794c9ccbf0ae8a468b62c513fb5e2c3c8aa9384 /tests
parent408d7d3d64477927bfc8a26bec3a56d7a2a8731c (diff)
downloadmariadb-git-c1b512fad37d2044a4e575436372ae1fbf365583.tar.gz
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
Diffstat (limited to 'tests')
-rw-r--r--tests/mysql_client_test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c
index 08ea5f1c1c9..95db383bbb6 100644
--- a/tests/mysql_client_test.c
+++ b/tests/mysql_client_test.c
@@ -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 */