summaryrefslogtreecommitdiff
path: root/sql/item_func.cc
diff options
context:
space:
mode:
authormonty@mashka.mysql.fi <>2002-12-14 17:43:01 +0200
committermonty@mashka.mysql.fi <>2002-12-14 17:43:01 +0200
commitd49167bae5cfd3419261e29558bc17d2d36ad94d (patch)
treeec4419624a982054d0682faee38e3ea102cd16d9 /sql/item_func.cc
parenta241d9a0f7c1a00c143adb98e2e251f324391430 (diff)
downloadmariadb-git-d49167bae5cfd3419261e29558bc17d2d36ad94d.tar.gz
Fixes for binary protocol (complement to last push)
Changed timestamp to return string in YYYY-MM-DD HH:MM:SS format. DATE_ADD() and related functions now returns correct DATE/DATETIME type depending on argument types. Now all tests passes, still some work left to remove warnings in log files from mysql-test-run
Diffstat (limited to 'sql/item_func.cc')
-rw-r--r--sql/item_func.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/item_func.cc b/sql/item_func.cc
index 1ce5b038f3b..c0b6a872831 100644
--- a/sql/item_func.cc
+++ b/sql/item_func.cc
@@ -1945,6 +1945,7 @@ static user_var_entry *get_variable(HASH *hash, LEX_STRING &name,
bool Item_func_set_user_var::fix_fields(THD *thd, TABLE_LIST *tables,
Item **ref)
{
+ /* fix_fields will call Item_func_set_user_var::fix_length_and_dec */
if (Item_func::fix_fields(thd, tables, ref) ||
!(entry= get_variable(&thd->user_vars, name, 1)))
return 1;