diff options
author | gkodinov@dl145s.mysql.com <> | 2006-09-15 14:14:38 +0200 |
---|---|---|
committer | gkodinov@dl145s.mysql.com <> | 2006-09-15 14:14:38 +0200 |
commit | a9b3bd0eec68f5f3ad45eebfb0d18a2cc33da8b2 (patch) | |
tree | c06f430053b575c0cd47f1bd8c68cf1146aedef3 /sql/item.h | |
parent | b1e087a717ccf618910d549f4621248dbbb94355 (diff) | |
parent | 325f820909aa5721719ab3eb25df636da72affe8 (diff) | |
download | mariadb-git-a9b3bd0eec68f5f3ad45eebfb0d18a2cc33da8b2.tar.gz |
Merge dl145s.mysql.com:/data/bk/team_tree_merge/MERGE/mysql-4.1-opt
into dl145s.mysql.com:/data/bk/team_tree_merge/MERGE/mysql-5.0-opt
Diffstat (limited to 'sql/item.h')
-rw-r--r-- | sql/item.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sql/item.h b/sql/item.h index f1fb2f6a04a..0cfb0b01fd8 100644 --- a/sql/item.h +++ b/sql/item.h @@ -2184,7 +2184,11 @@ public: { return Item_field::save_in_field(field_arg, no_conversions); } - table_map used_tables() const { return (table_map)0L; } + /* + We use RAND_TABLE_BIT to prevent Item_insert_value from + being treated as a constant and precalculated before execution + */ + table_map used_tables() const { return RAND_TABLE_BIT; } bool walk(Item_processor processor, byte *args) { |