summaryrefslogtreecommitdiff
path: root/sql/sql_yacc.yy
diff options
context:
space:
mode:
authorunknown <bar@bar.mysql.r18.ru>2003-07-15 17:33:00 +0500
committerunknown <bar@bar.mysql.r18.ru>2003-07-15 17:33:00 +0500
commit4b3eecf46b640b3601527ea59d819ddaec5820f8 (patch)
tree845244d4cf55ac7b19a0acd7fb5c0302a7e7e665 /sql/sql_yacc.yy
parent54fe4c542efbfbe10b320e73980bff9471554452 (diff)
downloadmariadb-git-4b3eecf46b640b3601527ea59d819ddaec5820f8.tar.gz
Item_func_field doesn't have a separate Item to store the first argument.
It's now passed as args[0]. This fix allowed to resuse a lot of code.
Diffstat (limited to 'sql/sql_yacc.yy')
-rw-r--r--sql/sql_yacc.yy2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy
index c836cb414e0..c07876a18cc 100644
--- a/sql/sql_yacc.yy
+++ b/sql/sql_yacc.yy
@@ -2427,7 +2427,7 @@ simple_expr:
$$= new Item_func_date_format (new Item_func_from_unixtime($3),$5,0);
}
| FIELD_FUNC '(' expr ',' expr_list ')'
- { $$= new Item_func_field($3, *$5); }
+ { $5->push_front($3); $$= new Item_func_field(*$5); }
| GEOMFROMTEXT '(' expr ')'
{ $$= new Item_func_geometry_from_text($3); }
| GEOMFROMTEXT '(' expr ',' expr ')'