summaryrefslogtreecommitdiff
path: root/mysql-test/t
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/t')
-rw-r--r--mysql-test/t/truncate.test5
1 files changed, 5 insertions, 0 deletions
diff --git a/mysql-test/t/truncate.test b/mysql-test/t/truncate.test
index 2430682a93f..1729ddc586a 100644
--- a/mysql-test/t/truncate.test
+++ b/mysql-test/t/truncate.test
@@ -13,3 +13,8 @@ drop table t1;
# The following should fail
--error 1146
select count(*) from t1;
+create temporary table t1 (n int);
+insert into t1 values (1),(2),(3);
+truncate table t1;
+select * from t1;
+drop table t1;