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.yy4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy
index bd51df8810c..7ef5d219f07 100644
--- a/sql/sql_yacc.yy
+++ b/sql/sql_yacc.yy
@@ -4626,8 +4626,8 @@ table_ident:
;
table_ident_ref:
- ident { LEX_STRING db={"",0}; $$=new Table_ident(db,$1,0); }
- | ident '.' ident { $$=new Table_ident($1,$3,0);}
+ ident { LEX_STRING db={(char*) any_db,3}; $$=new Table_ident(YYTHD, db,$1,0); }
+ | ident '.' ident { $$=new Table_ident(YYTHD, $1,$3,0);}
;
IDENT_sys: