summaryrefslogtreecommitdiff
path: root/sql/handler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/handler.cc')
-rw-r--r--sql/handler.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/sql/handler.cc b/sql/handler.cc
index 567dbe6ea49..1542dd99ec6 100644
--- a/sql/handler.cc
+++ b/sql/handler.cc
@@ -3209,6 +3209,21 @@ handler::ha_delete_all_rows()
/**
+ Truncate table: public interface.
+
+ @sa handler::truncate()
+*/
+
+int
+handler::ha_truncate()
+{
+ mark_trx_read_write();
+
+ return truncate();
+}
+
+
+/**
Reset auto increment: public interface.
@sa handler::reset_auto_increment()