summaryrefslogtreecommitdiff
path: root/sql/item_func.cc
diff options
context:
space:
mode:
authorMichael Widenius <monty@askmonty.org>2011-01-05 16:03:58 +0200
committerMichael Widenius <monty@askmonty.org>2011-01-05 16:03:58 +0200
commit215043b7c2ace7ce05dcf6c685c87a293ccf1cd7 (patch)
tree679d57ddbf9713b7129872db144ff408b0215b31 /sql/item_func.cc
parent31a78529bc5c4431865eba06762e6cc66359f759 (diff)
parent6b03fbf9fcacc74cb2999ba7715d22d754f356c7 (diff)
downloadmariadb-git-215043b7c2ace7ce05dcf6c685c87a293ccf1cd7.tar.gz
Merge with 5.1
Diffstat (limited to 'sql/item_func.cc')
-rw-r--r--sql/item_func.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/sql/item_func.cc b/sql/item_func.cc
index 389f2a25a2a..1db8f6e8da6 100644
--- a/sql/item_func.cc
+++ b/sql/item_func.cc
@@ -202,6 +202,21 @@ Item_func::fix_fields(THD *thd, Item **ref)
return FALSE;
}
+void
+Item_func::quick_fix_field()
+{
+ Item **arg,**arg_end;
+ if (arg_count)
+ {
+ for (arg=args, arg_end=args+arg_count; arg != arg_end ; arg++)
+ {
+ if (!(*arg)->fixed)
+ (*arg)->quick_fix_field();
+ }
+ }
+ fixed= 1;
+}
+
bool Item_func::walk(Item_processor processor, bool walk_subquery,
uchar *argument)