1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

restore ER_VIEW_CHECK_FAILED to be different from ER_CONSTRAINT_FAILED

collaterals:
* use %`s, not '%s'
* use correct SQLSTATE codes for these two errors
This commit is contained in:
Sergei Golubchik
2016-06-26 15:46:36 +02:00
parent c87e002bbb
commit 99e48cb1d9
35 changed files with 860 additions and 875 deletions

View File

@ -5003,7 +5003,7 @@ CREATE VIEW v2 (a,b) AS
SELECT t2.id, t2.c AS c FROM t1, t2
WHERE t1.id=t2.id AND 1 IN (SELECT id FROM t1) WITH CHECK OPTION;
INSERT INTO v2(a,b) VALUES (2,2);
ERROR HY000: CONSTRAINT 'WITH CHECK OPTION' failed for 'test.v2'
ERROR 44000: CHECK OPTION failed `test`.`v2`
SELECT * FROM v1;
c
1