diff options
author | Alexander Barkov <bar@mariadb.org> | 2015-03-04 09:52:01 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.org> | 2015-03-04 09:52:01 +0400 |
commit | 87b0cc99123e5d6923c77ac3e08c4e9ed0d4d769 (patch) | |
tree | 1dfc0f010060d53a1db9547e4464b662faf112d2 /mysql-test/t/create.test | |
parent | a7ed8523e35ff2e82701cd1f483c8f665f322f3b (diff) | |
download | mariadb-git-87b0cc99123e5d6923c77ac3e08c4e9ed0d4d769.tar.gz |
MDEV-7286 TRIGGER: CREATE OR REPLACE, CREATE IF NOT EXISTS
Based on the patch by Sriram Patil, made under terms of GSoC 2014.
Diffstat (limited to 'mysql-test/t/create.test')
-rw-r--r-- | mysql-test/t/create.test | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mysql-test/t/create.test b/mysql-test/t/create.test index 4d57a5a110a..30c93f58e2f 100644 --- a/mysql-test/t/create.test +++ b/mysql-test/t/create.test @@ -1622,12 +1622,18 @@ END ; | INSERT INTO t1 (pk, int_key) SELECT `pk` , `int_key` FROM B ; --delimiter | ---error ER_NOT_SUPPORTED_YET +--error ER_TRG_ALREADY_EXISTS CREATE TRIGGER f BEFORE INSERT ON t1 FOR EACH ROW BEGIN UPDATE A SET `pk`=1 WHERE `pk`=0 ; END ;| +--error ER_NOT_SUPPORTED_YET +CREATE TRIGGER f1 BEFORE INSERT ON t1 FOR EACH ROW +BEGIN + UPDATE A SET `pk`=1 WHERE `pk`=0 ; +END ;| + --delimiter ; DROP TABLE t1; |