mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Fix bug #12298 Typo in timestampdiff() function name results in erroneous
view being created. Item_func_timestamp_diff::func_name() were returning function name as "timestamp_diff" thus when view was executed function parameters wasn't properly recognized and error was raised.
This commit is contained in:
@@ -1936,4 +1936,9 @@ SELECT a FROM v1;
|
||||
DROP VIEW v1;
|
||||
DROP TABLE t1,t2,t3,t4,t5;
|
||||
|
||||
|
||||
#
|
||||
# Bug #12298 Typo in function name results in erroneous view being created.
|
||||
#
|
||||
create view v1 as select timestampdiff(day,'1997-01-01 00:00:00','1997-01-02 00:00:00') as f1;
|
||||
select * from v1;
|
||||
drop view v1;
|
||||
|
||||
Reference in New Issue
Block a user