diff options
author | unknown <serg@serg.mysql.com> | 2003-03-02 01:48:57 +0100 |
---|---|---|
committer | unknown <serg@serg.mysql.com> | 2003-03-02 01:48:57 +0100 |
commit | 0066207079e5be3061d97db537195196bb793dd9 (patch) | |
tree | d6b07c3fd5fd4967ed72aa58fae16480e0049cfd /mysql-test/t/auto_increment.test | |
parent | 61bb88187a1eaff66d0cdc0d9310f1a017ca9af5 (diff) | |
download | mariadb-git-0066207079e5be3061d97db537195196bb793dd9.tar.gz |
fix auto-increment in sub-key and insert ... select
Diffstat (limited to 'mysql-test/t/auto_increment.test')
-rw-r--r-- | mysql-test/t/auto_increment.test | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mysql-test/t/auto_increment.test b/mysql-test/t/auto_increment.test index d86466572d8..5fba4bb9234 100644 --- a/mysql-test/t/auto_increment.test +++ b/mysql-test/t/auto_increment.test @@ -52,6 +52,13 @@ insert into t1 values (NULL,'sdj'),(NULL,'sdj'),(NULL,"abc"),(NULL,'abc'),(NULL, select * from t1; drop table t1; +create table t1 (sid char(5), id int(2) NOT NULL auto_increment, key(sid, id)); +create table t2 (sid char(20), id int(2)); +insert into t2 values ('skr',NULL),('skr',NULL),('test',NULL); +insert into t1 select * from t2; +select * from t1; +drop table t1,t2; + # # Test of auto_increment columns when they are set to 0 # @@ -62,3 +69,4 @@ update t1 set a=0; select * from t1; check table t1; drop table t1; + |