{ if (!($$= new Item_func_eq(new Item_field(Lex->db1,Lex->table1, $1.str), new Item_field(Lex->db2,Lex->table2,$1.str))))
{ if (!($$= new Item_func_eq(new Item_field(Select->db1,Select->table1, $1.str), new Item_field(Select->db2,Select->table2,$1.str))))
YYABORT;
}
| using_list ',' ident
{
if (!($$= new Item_cond_and(new Item_func_eq(new Item_field(Lex->db1,Lex->table1,$3.str), new Item_field(Lex->db2,Lex->table2,$3.str)), $1)))
if (!($$= new Item_cond_and(new Item_func_eq(new Item_field(Select->db1,Select->table1,$3.str), new Item_field(Select->db2,Select->table2,$3.str)), $1)))
YYABORT;
}
...
...
@@ -1865,13 +1867,13 @@ opt_table_alias:
where_clause:
/* empty */ { Lex->where= 0; }
| WHERE expr { Lex->where= $2; }
/* empty */ { Select->where= 0; }
| WHERE expr { Select->where= $2; }
having_clause:
/* empty */
| HAVING { Lex->create_refs=1; } expr
{ Lex->having= $3; Lex->create_refs=0; }
| HAVING { Select->create_refs=1; } expr
{ Select->having= $3; Select->create_refs=0; }
opt_escape:
ESCAPE_SYM TEXT_STRING { $$= $2.str; }
...
...
@@ -1901,7 +1903,7 @@ opt_order_clause:
| order_clause
order_clause:
ORDER_SYM BY { Lex->sort_default=1; } order_list
ORDER_SYM BY { Select->sort_default=1; } order_list