summaryrefslogtreecommitdiff
path: root/sql/item_timefunc.cc
diff options
context:
space:
mode:
authorevgen@moonbone.local <>2005-07-20 06:55:51 +0400
committerevgen@moonbone.local <>2005-07-20 06:55:51 +0400
commit6b25219feab6fbbf4c03b1f44b04041da5b9b515 (patch)
tree0a6e774c5a397c41c20bbea6dc7edf46f843fe1d /sql/item_timefunc.cc
parentec15dda2bfa246d71a257da2d25c3d398b4d4cc4 (diff)
downloadmariadb-git-6b25219feab6fbbf4c03b1f44b04041da5b9b515.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.
Diffstat (limited to 'sql/item_timefunc.cc')
-rw-r--r--sql/item_timefunc.cc2
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(')');
}