summaryrefslogtreecommitdiff
path: root/sql/ha_innodb.h
diff options
context:
space:
mode:
authorunknown <osku@127.(none)>2005-08-17 11:00:20 +0300
committerunknown <osku@127.(none)>2005-08-17 11:00:20 +0300
commitfa31a9950babd887086c20419669b484d813f501 (patch)
tree11d5cb3571d6cc02c145f145c4e8f190b0477cf1 /sql/ha_innodb.h
parentc78623fa10bfb8d0716c2a77a85be651fdd33996 (diff)
downloadmariadb-git-fa31a9950babd887086c20419669b484d813f501.tar.gz
Fix bug #11946, truncate not always resetting the auto-increment counter
in InnoDB tables. mysql-test/r/innodb.result: New tests. mysql-test/t/innodb.test: New tests. sql/ha_innodb.cc: Add reset_auto_increment. sql/ha_innodb.h: Add reset_auto_increment. sql/handler.h: Add reset_auto_increment. sql/sql_delete.cc: Call handler->reset_auto_increment when needed.
Diffstat (limited to 'sql/ha_innodb.h')
-rw-r--r--sql/ha_innodb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/ha_innodb.h b/sql/ha_innodb.h
index 4817ab9b682..ec823487b30 100644
--- a/sql/ha_innodb.h
+++ b/sql/ha_innodb.h
@@ -173,6 +173,8 @@ class ha_innobase: public handler
enum thr_lock_type lock_type);
void init_table_handle_for_HANDLER();
ulonglong get_auto_increment();
+ int reset_auto_increment();
+
uint8 table_cache_type() { return HA_CACHE_TBL_ASKTRANSACT; }
/*
ask handler about permission to cache table during query registration