diff options
author | unknown <ingo@mysql.com> | 2005-01-26 09:07:25 +0100 |
---|---|---|
committer | unknown <ingo@mysql.com> | 2005-01-26 09:07:25 +0100 |
commit | 360d32f20120c8aebdb26dd5450cae8fbfaf81cf (patch) | |
tree | d139b6f8555025e301d61db52c2f7a103458753d /sql | |
parent | d7d7741e5b2e7353859aa793e27aaa43df344257 (diff) | |
parent | 8deafa8037b289d089ffeb8d6bdaee812113a9b0 (diff) | |
download | mariadb-git-360d32f20120c8aebdb26dd5450cae8fbfaf81cf.tar.gz |
Merge mysql.com:/home/mydev/mysql-4.0
into mysql.com:/home/mydev/mysql-4.0-4000
Diffstat (limited to 'sql')
-rw-r--r-- | sql/sql_yacc.yy | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy index 7b72c73a915..6d0237f5615 100644 --- a/sql/sql_yacc.yy +++ b/sql/sql_yacc.yy @@ -4033,11 +4033,14 @@ optional_order_or_limit: send_error(&lex->thd->net, ER_SYNTAX_ERROR); YYABORT; } - if (mysql_new_select(lex)) - YYABORT; - mysql_init_select(lex); - lex->select->linkage=NOT_A_SELECT; - lex->select->select_limit=lex->thd->variables.select_limit; + if (lex->select != &lex->select_lex) + { + if (mysql_new_select(lex)) + YYABORT; + mysql_init_select(lex); + lex->select->linkage=NOT_A_SELECT; + lex->select->select_limit=lex->thd->variables.select_limit; + } } opt_order_clause limit_clause ; |