summaryrefslogtreecommitdiff
path: root/sql/sql_yacc.yy
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_yacc.yy')
-rw-r--r--sql/sql_yacc.yy3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy
index 7b8aa13e214..cf56c9c2074 100644
--- a/sql/sql_yacc.yy
+++ b/sql/sql_yacc.yy
@@ -5754,6 +5754,7 @@ simple_ident:
(Item*) new Item_field(NullS,NullS,$1.str) :
(Item*) new Item_ref(0,0, NullS,NullS,$1.str);
}
+ }
| simple_ident_q { $$= $1; }
;
@@ -5764,7 +5765,7 @@ simple_ident_nospvar:
$$= (sel->parsing_place != SELECT_LEX_NODE::IN_HAVING ||
sel->get_in_sum_expr() > 0) ?
(Item*) new Item_field(NullS,NullS,$1.str) :
- (Item*) new Item_ref(NullS,NullS,$1.str);
+ (Item*) new Item_ref(0,0,NullS,NullS,$1.str);
}
| simple_ident_q { $$= $1; }
;