diff options
author | unknown <serg@serg.mylan> | 2004-08-24 17:24:23 +0200 |
---|---|---|
committer | unknown <serg@serg.mylan> | 2004-08-24 17:24:23 +0200 |
commit | a49c12f5152791042eeecac19db9054ad845e3dd (patch) | |
tree | 35c94403332fed86012546db775d8817473f7435 /mysql-test/t/truncate.test | |
parent | 62a63815e119807134de74edb78e478b75a6b874 (diff) | |
parent | 9d1a9d72cba1aa828e631f520540411d7508a4e0 (diff) | |
download | mariadb-git-a49c12f5152791042eeecac19db9054ad845e3dd.tar.gz |
manually merged
BitKeeper/etc/logging_ok:
auto-union
mysql-test/r/binary.result:
Auto merged
mysql-test/r/truncate.result:
Auto merged
mysql-test/t/binary.test:
Auto merged
mysql-test/t/truncate.test:
Auto merged
mysys/my_lib.c:
Auto merged
strings/my_vsnprintf.c:
Auto merged
support-files/Makefile.am:
Auto merged
Diffstat (limited to 'mysql-test/t/truncate.test')
-rw-r--r-- | mysql-test/t/truncate.test | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/mysql-test/t/truncate.test b/mysql-test/t/truncate.test index 434a1907e42..b7ec506ecf1 100644 --- a/mysql-test/t/truncate.test +++ b/mysql-test/t/truncate.test @@ -26,7 +26,7 @@ drop table t1; truncate non_existing_table; # -# test autoincrement with TRUNCATE +# test autoincrement with TRUNCATE; verifying difference with DELETE # create table t1 (a integer auto_increment primary key); @@ -34,5 +34,19 @@ insert into t1 (a) values (NULL),(NULL); truncate table t1; insert into t1 (a) values (NULL),(NULL); SELECT * from t1; +delete from t1; +insert into t1 (a) values (NULL),(NULL); +SELECT * from t1; drop table t1; +# Verifying that temp tables are handled the same way + +create temporary table t1 (a integer auto_increment primary key); +insert into t1 (a) values (NULL),(NULL); +truncate table t1; +insert into t1 (a) values (NULL),(NULL); +SELECT * from t1; +delete from t1; +insert into t1 (a) values (NULL),(NULL); +SELECT * from t1; +drop table t1; |