summaryrefslogtreecommitdiff
path: root/mysql-test/t/create.test
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.org>2015-03-04 09:52:01 +0400
committerAlexander Barkov <bar@mariadb.org>2015-03-04 09:52:01 +0400
commit87b0cc99123e5d6923c77ac3e08c4e9ed0d4d769 (patch)
tree1dfc0f010060d53a1db9547e4464b662faf112d2 /mysql-test/t/create.test
parenta7ed8523e35ff2e82701cd1f483c8f665f322f3b (diff)
downloadmariadb-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.test8
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;