diff options
author | unknown <guilhem@mysql.com> | 2004-08-23 17:16:22 +0200 |
---|---|---|
committer | unknown <guilhem@mysql.com> | 2004-08-23 17:16:22 +0200 |
commit | 696a303547eef73d5f58c1f8b68189e38913cf37 (patch) | |
tree | 5e62c20e8cd4a96dad67fc52c3d0ecf7a1340e2b /mysql-test/t | |
parent | 1e86cd1ed1638096065cf3d44c31ae19af5c4086 (diff) | |
parent | e9c25d9336c8d1266254df5f795366e7d280de85 (diff) | |
download | mariadb-git-696a303547eef73d5f58c1f8b68189e38913cf37.tar.gz |
Merge gbichot@bk-internal.mysql.com:/home/bk/mysql-4.0
into mysql.com:/home/mysql_src/mysql-4.0
Diffstat (limited to 'mysql-test/t')
-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 3acab9f56de..f92e92fbc97 100644 --- a/mysql-test/t/truncate.test +++ b/mysql-test/t/truncate.test @@ -23,7 +23,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); @@ -31,5 +31,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; |