summaryrefslogtreecommitdiff
path: root/sql/item_func.h
diff options
context:
space:
mode:
authorunknown <monty@donna.mysql.com>2001-02-03 18:00:29 +0200
committerunknown <monty@donna.mysql.com>2001-02-03 18:00:29 +0200
commit37aa09b19bba4f411b43be78cbc46b6a5f0aee95 (patch)
treeb01406ccbcbde61bdde5e643977c7f0fa76dc098 /sql/item_func.h
parent605c330184df49dc7e1187e88a038156d1799ce6 (diff)
downloadmariadb-git-37aa09b19bba4f411b43be78cbc46b6a5f0aee95.tar.gz
Workaround for bug in thread library in Unixware 7
Fixed bug in GROUP BY on ELT() Added SEQUENCE() to UDF examples BUILD/FINISH.sh: Avoid error message if tmp exists Docs/manual.texi: Cleaned up bug reporting section mysys/my_init.c: Workaround for bug in thread library in Unixware 7 readline/input.c: Portability fix scripts/mysql_install_db.sh: Made host, user and db field binary sql/item_func.h: Fixed bug in GROUP BY on ELT() sql/item_strfunc.cc: Fixed bug in GROUP BY on ELT() sql/share/Makefile.am: Don't automaticly checkout SCCS files sql/sql_select.cc: Cleanups sql/udf_example.cc: Added SEQUENCE() to UDF examples.
Diffstat (limited to 'sql/item_func.h')
-rw-r--r--sql/item_func.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/sql/item_func.h b/sql/item_func.h
index 5810307e81c..71eab66270e 100644
--- a/sql/item_func.h
+++ b/sql/item_func.h
@@ -520,11 +520,17 @@ public:
void update_used_tables()
{
item->update_used_tables() ; Item_func::update_used_tables();
- used_tables_cache|=item->used_tables();
+ used_tables_cache|= item->used_tables();
+ const_item_cache&= item->const_item();
}
const char *func_name() const { return "field"; }
void fix_length_and_dec()
- { maybe_null=0; max_length=2; used_tables_cache|=item->used_tables();}
+ {
+ maybe_null=0; max_length=3;
+ used_tables_cache|= item->used_tables();
+ const_item_cache&= item->const_item();
+ with_sum_func= with_sum_func || item->with_sum_func;
+ }
};