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:
@ -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
|
||||
|
Reference in New Issue
Block a user