summaryrefslogtreecommitdiff
path: root/sql/item_func.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/item_func.cc')
-rw-r--r--sql/item_func.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/item_func.cc b/sql/item_func.cc
index f2d78fdb9e8..69ddd21f913 100644
--- a/sql/item_func.cc
+++ b/sql/item_func.cc
@@ -1187,7 +1187,8 @@ double Item_func_round::val_real()
bool Item_func_rand::fix_fields(THD *thd, struct st_table_list *tables,
Item **ref)
{
- Item_real_func::fix_fields(thd, tables, ref);
+ if (Item_real_func::fix_fields(thd, tables, ref))
+ return TRUE;
used_tables_cache|= RAND_TABLE_BIT;
if (arg_count)
{ // Only use argument once in query