mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Give warnings for unused objects
Changed error message to be compatible with old error file Added new error message for new DUP_ENTRY syntax
This commit is contained in:
@ -2684,10 +2684,12 @@ FROM t1 HAVING Age < 75;
|
||||
SHOW CREATE VIEW v1;
|
||||
View Create View
|
||||
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select (year(now()) - year(`t1`.`DOB`)) AS `Age` from `t1` having (`Age` < 75)
|
||||
set timestamp=1136066400;
|
||||
SELECT (year(now())-year(DOB)) AS Age FROM t1 HAVING Age < 75;
|
||||
Age
|
||||
42
|
||||
38
|
||||
set timestamp=1136066400;
|
||||
SELECT * FROM v1;
|
||||
Age
|
||||
42
|
||||
|
Reference in New Issue
Block a user