mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +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:
@@ -27,6 +27,6 @@ drop table t1;
|
||||
CREATE TABLE t1 (f1 INT);
|
||||
CREATE VIEW v1 AS SELECT f1 FROM t1 WHERE f1 = 0 WITH CHECK OPTION;
|
||||
REPLACE INTO v1 (f1) VALUES (1);
|
||||
ERROR HY000: CONSTRAINT 'WITH CHECK OPTION' failed for 'test.v1'
|
||||
ERROR 44000: CHECK OPTION failed `test`.`v1`
|
||||
DROP TABLE t1;
|
||||
DROP VIEW v1;
|
||||
|
||||
Reference in New Issue
Block a user