summaryrefslogtreecommitdiff
path: root/sql/handler.h
diff options
context:
space:
mode:
authorunknown <monty@mysql.com>2005-05-18 10:41:35 +0300
committerunknown <monty@mysql.com>2005-05-18 10:41:35 +0300
commitef342b743e4d8bb504590245e57f7ae45dc7808d (patch)
tree0794c9ccbf0ae8a468b62c513fb5e2c3c8aa9384 /sql/handler.h
parent2398f9d6f292a5b25757a2d4dc1a3e6a29ccdbb3 (diff)
downloadmariadb-git-ef342b743e4d8bb504590245e57f7ae45dc7808d.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 mysys/thr_alarm.c: Remove warning from valgrind sql/item_strfunc.cc: Fixed indentation tests/mysql_client_test.c: Removed compiler warning
Diffstat (limited to 'sql/handler.h')
-rw-r--r--sql/handler.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/handler.h b/sql/handler.h
index 6a259da0d43..a530406356e 100644
--- a/sql/handler.h
+++ b/sql/handler.h
@@ -497,7 +497,7 @@ public:
{}
virtual ~handler(void) { /* TODO: DBUG_ASSERT(inited == NONE); */ }
int ha_open(const char *name, int mode, int test_if_locked);
- void update_auto_increment();
+ bool update_auto_increment();
virtual void print_error(int error, myf errflag);
virtual bool get_error_message(int error, String *buf);
uint get_dup_key(int error);