1
0
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:
evgen@moonbone.local
2005-08-12 22:42:50 +04:00
parent 8f115aafd7
commit 0f9b982970
4 changed files with 13 additions and 3 deletions

View File

@@ -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;