summaryrefslogtreecommitdiff
path: root/mysql-test/r/ndb_truncate.result
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/r/ndb_truncate.result')
-rw-r--r--mysql-test/r/ndb_truncate.result14
1 files changed, 14 insertions, 0 deletions
diff --git a/mysql-test/r/ndb_truncate.result b/mysql-test/r/ndb_truncate.result
new file mode 100644
index 00000000000..38f3a78029c
--- /dev/null
+++ b/mysql-test/r/ndb_truncate.result
@@ -0,0 +1,14 @@
+DROP TABLE IF EXISTS t2;
+CREATE TABLE t2 (
+a bigint unsigned NOT NULL PRIMARY KEY,
+b int unsigned not null,
+c int unsigned
+) engine=ndbcluster;
+select count(*) from t2;
+count(*)
+5000
+truncate table t2;
+select count(*) from t2;
+count(*)
+0
+drop table t2;