diff options
author | ingo@mysql.com <> | 2005-01-26 09:07:25 +0100 |
---|---|---|
committer | ingo@mysql.com <> | 2005-01-26 09:07:25 +0100 |
commit | f003fb1f9c8042f061c10e3df9ce0627098218b6 (patch) | |
tree | d139b6f8555025e301d61db52c2f7a103458753d /sql | |
parent | 5f23207d95633ee5ec9409fb55bf4044da732534 (diff) | |
parent | 34fa69a194eefe4ce4019c368e1233b079c1edf3 (diff) | |
download | mariadb-git-f003fb1f9c8042f061c10e3df9ce0627098218b6.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 ; |