diff options
author | Martin Hansson <martin.hansson@sun.com> | 2009-08-20 14:30:59 +0200 |
---|---|---|
committer | Martin Hansson <martin.hansson@sun.com> | 2009-08-20 14:30:59 +0200 |
commit | acdbef45205552ee3444f072251c7f5dc2850871 (patch) | |
tree | 4868f5a041cb941b8da9850318ed6c9c6e2f7496 /mysql-test/r/auto_increment.result | |
parent | a6ddf8b18a0dc14c880261beb572e8128aebd55d (diff) | |
parent | e66fba53a76b54d63d7ce6edc680a2e8886018d8 (diff) | |
download | mariadb-git-acdbef45205552ee3444f072251c7f5dc2850871.tar.gz |
Bug#46616: Merge
mysql-test/r/auto_increment.result:
Bug#46616: Test result.
mysql-test/t/auto_increment.test:
Bug#46616: Test case.
sql/sql_update.cc:
Bug#46616: Fix.
Diffstat (limited to 'mysql-test/r/auto_increment.result')
-rw-r--r-- | mysql-test/r/auto_increment.result | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mysql-test/r/auto_increment.result b/mysql-test/r/auto_increment.result index 21e6347cb47..4a2e108f8c6 100644 --- a/mysql-test/r/auto_increment.result +++ b/mysql-test/r/auto_increment.result @@ -462,3 +462,17 @@ select last_insert_id(); last_insert_id() 3 drop table t1; +# +# Bug#46616: Assertion `!table->auto_increment_field_not_null' on view +# manipulations +# +CREATE TABLE t1 ( a INT ); +INSERT INTO t1 VALUES (1), (1); +CREATE TABLE t2 ( a INT AUTO_INCREMENT KEY ); +CREATE TABLE IF NOT EXISTS t2 AS SELECT a FROM t1; +ERROR 23000: Duplicate entry '1' for key 'PRIMARY' +UPDATE t2 SET a = 2; +SELECT a FROM t2; +a +2 +DROP TABLE t1, t2; |