diff options
author | Rucha Deodhar <rucha.deodhar@mariadb.com> | 2020-07-28 13:43:25 +0530 |
---|---|---|
committer | Rucha Deodhar <rucha.deodhar@mariadb.com> | 2020-08-03 10:44:14 +0530 |
commit | 97f7bfcebcc17df337bd97c0a9535a906547016d (patch) | |
tree | 04efbc43981b3fbf93d4d7a05ab13e7b662b766f /mysql-test/main/create.test | |
parent | 00f964ab4da08cc5fa71d3d9b9f262448a5f818a (diff) | |
download | mariadb-git-97f7bfcebcc17df337bd97c0a9535a906547016d.tar.gz |
MDEV-21017: Assertion `!is_set() || (m_status == DA_OK_BULK && is_bulk_op())'
failed or late ER_PERIOD_FIELD_WRONG_ATTRIBUTES upon attempt to create
existing table
Analysis: Error state is not stored when field is checked in
Table_period_info::check_field()
Fix: Store error state by setting res to true.
Diffstat (limited to 'mysql-test/main/create.test')
-rw-r--r-- | mysql-test/main/create.test | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/mysql-test/main/create.test b/mysql-test/main/create.test index 64aea4ddcf1..a6a6ba0c782 100644 --- a/mysql-test/main/create.test +++ b/mysql-test/main/create.test @@ -1873,3 +1873,21 @@ drop table t1; CREATE TABLE t1 ( id1 INT, id2 INT, CONSTRAINT `foo` PRIMARY KEY (id1), CONSTRAINT `bar` UNIQUE KEY(id2)); DROP TABLE t1; +--echo # +--echo # 10.4 Test +--echo # +--echo # MDEV-21017: Assertion `!is_set() || (m_status == DA_OK_BULK && +--echo # is_bulk_op())' failed or late ER_PERIOD_FIELD_WRONG_ATTRIBUTES +--echo # upon attempt to create existing table +--echo # +CREATE TABLE t1 (a INT); +LOCK TABLE t1 WRITE; + +--error ER_PERIOD_FIELD_WRONG_ATTRIBUTES +CREATE TABLE IF NOT EXISTS t1 (s DATE GENERATED ALWAYS AS ('2000-01-01') STORED, +e DATE, PERIOD FOR app(s,e)); + +UNLOCK TABLES; +DROP TABLE t1; + +--echo # End of 10.4 Test |