diff options
author | unknown <evgen@moonbone.local> | 2005-07-20 06:55:51 +0400 |
---|---|---|
committer | unknown <evgen@moonbone.local> | 2005-07-20 06:55:51 +0400 |
commit | c816f2971322803bbdbbe5b92a17c892ddd51ced (patch) | |
tree | 0a6e774c5a397c41c20bbea6dc7edf46f843fe1d /sql/item_timefunc.cc | |
parent | f1d5c0489b03d924750ae7112ffaf34da5d6fe7b (diff) | |
download | mariadb-git-c816f2971322803bbdbbe5b92a17c892ddd51ced.tar.gz |
Fix bug #11760 Typo in Item_func_add_time::print() results in NULLs returned
by subtime() in view
Item_func_add_time::print() were printing arg[0] instead of arg[1] which
results in wrongly created view. Functions addtime() and subtime were
affected by this bug.
sql/item_timefunc.cc:
Fix bug #11760 Typo in Item_func_add_time::print() results in wrongly created view
mysql-test/t/view.test:
Test case for bug #11760 Typo in Item_func_add_time::print() results in wrongly created view
mysql-test/r/view.result:
Test case for bug #11760 Typo in Item_func_add_time::print() results in wrongly created view
mysql-test/r/date_formats.result:
Fixed wrong test result. Affected by bug#11760
Diffstat (limited to 'sql/item_timefunc.cc')
-rw-r--r-- | sql/item_timefunc.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_timefunc.cc b/sql/item_timefunc.cc index cac9613f1ad..1f9ee3f148c 100644 --- a/sql/item_timefunc.cc +++ b/sql/item_timefunc.cc @@ -2524,7 +2524,7 @@ void Item_func_add_time::print(String *str) } args[0]->print(str); str->append(','); - args[0]->print(str); + args[1]->print(str); str->append(')'); } |