summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2002-08-30 18:39:42 +0300
committerunknown <bell@sanja.is.com.ua>2002-08-30 18:39:42 +0300
commite10984b95cde308868c4d4f7fa3321f034684d57 (patch)
tree24482c469453ca43cfcd2ca1bcfcd24a579463eb /mysql-test
parent103e293654a1ced712bb8a901d7994c6cb86a8fc (diff)
downloadmariadb-git-e10984b95cde308868c4d4f7fa3321f034684d57.tar.gz
truncate test made independed from environment
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/r/truncate.result1
-rw-r--r--mysql-test/t/truncate.test1
2 files changed, 2 insertions, 0 deletions
diff --git a/mysql-test/r/truncate.result b/mysql-test/r/truncate.result
index 44dacdd9bf1..ad390c9fa92 100644
--- a/mysql-test/r/truncate.result
+++ b/mysql-test/r/truncate.result
@@ -1,3 +1,4 @@
+drop table if exists t1;
create table t1 (a integer, b integer,c1 CHAR(10));
insert into t1 (a) values (1),(2);
truncate table t1;
diff --git a/mysql-test/t/truncate.test b/mysql-test/t/truncate.test
index 841ce06351e..eeb79f497fa 100644
--- a/mysql-test/t/truncate.test
+++ b/mysql-test/t/truncate.test
@@ -1,6 +1,7 @@
#
# Test of truncate
#
+drop table if exists t1;
create table t1 (a integer, b integer,c1 CHAR(10));
insert into t1 (a) values (1),(2);
truncate table t1;