From 94a1e48232184a25837e49fc01120228e5ff7860 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 4 Aug 2004 11:28:36 +0200 Subject: BUG#4892 TRUNCATE TABLE returns error 156 Added NDBCLUSTER to table types which does not support generate. Added test case for truncate. sql/handler.h: Add NDBCLUSTER to table types that does not support generate. --- mysql-test/r/ndb_truncate.result | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 mysql-test/r/ndb_truncate.result (limited to 'mysql-test/r/ndb_truncate.result') 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; -- cgit v1.2.1