diff options
author | unknown <evgen@moonbone.local> | 2005-08-12 22:42:50 +0400 |
---|---|---|
committer | unknown <evgen@moonbone.local> | 2005-08-12 22:42:50 +0400 |
commit | d32c4314ed5935e7a03f443e3f26bae47e572600 (patch) | |
tree | 54ef66af577cb320a60be1c002f3e2b1e85d8017 /sql/item_timefunc.h | |
parent | 6161e1970867f278b8f3b4feb569eb14ef0f0fa5 (diff) | |
download | mariadb-git-d32c4314ed5935e7a03f443e3f26bae47e572600.tar.gz |
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.
mysql-test/r/func_time.result:
Fix test result after bugfix #12298
sql/item_timefunc.h:
Fix bug #12298 Typo in timestampdiff() function name results in wrong view being created.
mysql-test/t/view.test:
Test case for bug #12298 Typo in timestampdiff() function name results in erroneous view being created.
mysql-test/r/view.result:
Test case for bug #12298 Typo in timestampdiff() function name results in erroneous view being created.
Diffstat (limited to 'sql/item_timefunc.h')
-rw-r--r-- | sql/item_timefunc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_timefunc.h b/sql/item_timefunc.h index e79bc25030b..d9300451fe7 100644 --- a/sql/item_timefunc.h +++ b/sql/item_timefunc.h @@ -860,7 +860,7 @@ class Item_func_timestamp_diff :public Item_int_func public: Item_func_timestamp_diff(Item *a,Item *b,interval_type type_arg) :Item_int_func(a,b), int_type(type_arg) {} - const char *func_name() const { return "timestamp_diff"; } + const char *func_name() const { return "timestampdiff"; } longlong val_int(); void fix_length_and_dec() { |