summaryrefslogtreecommitdiff
path: root/sql/item_func.cc
diff options
context:
space:
mode:
authorunknown <ram@gw.mysql.r18.ru>2004-03-17 18:40:04 +0400
committerunknown <ram@gw.mysql.r18.ru>2004-03-17 18:40:04 +0400
commit6ff6a5eade2beabec82fb87c3b91578c71f6895e (patch)
treed5515bf24a38a52597d8b7e3319a18b319ca2b03 /sql/item_func.cc
parent3d13c4027a6c30c3f57ae9c2b83530ca80a49356 (diff)
downloadmariadb-git-6ff6a5eade2beabec82fb87c3b91578c71f6895e.tar.gz
Code cleanup:
- added unsigned_flag= 1; to Item_uint constructors - removed Item_uint::fix_fields() - added a comment about fix_fields() call sql/item.h: added unsigned_flag= 1; to Item_uint constructors removed Item_uint::fix_fields() sql/item_func.cc: added a comment about fix_fields() call.
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 d5e94c7bd35..5e479f80e62 100644
--- a/sql/item_func.cc
+++ b/sql/item_func.cc
@@ -205,6 +205,7 @@ Item_func::fix_fields(THD *thd, TABLE_LIST *tables, Item **ref)
{
Item *item;
/* We can't yet set item to *arg as fix_fields may change *arg */
+ /* We shouldn't call fix_fields() twice, so check 'fixed' field first */
if ((!(*arg)->fixed && (*arg)->fix_fields(thd, tables, arg)) ||
(*arg)->check_cols(allowed_arg_cols))
return 1; /* purecov: inspected */