diff options
author | unknown <kroki@mysql.com> | 2006-05-03 18:02:43 +0400 |
---|---|---|
committer | unknown <kroki@mysql.com> | 2006-05-03 18:02:43 +0400 |
commit | bf8dac3b1949b16b4a91f0f09ec81806e73a46d7 (patch) | |
tree | c58eeded40e2e6c11428797b1ac18a15eb1c9ee9 /mysql-test/r/explain.result | |
parent | 853f5413f631146c42b97409aef5f1ac4ad3614a (diff) | |
download | mariadb-git-bf8dac3b1949b16b4a91f0f09ec81806e73a46d7.tar.gz |
Bug#15463: EXPLAIN SELECT..INTO hangs the client (QB, command line)
There were two distict bugs: parse error was returned for valid
statement and that error wasn't reported to the client.
The fix ensures that EXPLAIN SELECT..INTO is accepted by parser and any
other parse error will be reported to the client.
mysql-test/r/explain.result:
Add result for bug#15463.
mysql-test/t/explain.test:
Add test case for bug#15463.
sql/sql_parse.cc:
Assert that if parsing error has occured then apropriate error message
has been pushed into error stack.
sql/sql_yacc.yy:
If there is no lex->result in select_var_ident rule, then we have
to be in DESCRIBE mode.
Diffstat (limited to 'mysql-test/r/explain.result')
-rw-r--r-- | mysql-test/r/explain.result | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mysql-test/r/explain.result b/mysql-test/r/explain.result index d66dec741bd..75e1548cdee 100644 --- a/mysql-test/r/explain.result +++ b/mysql-test/r/explain.result @@ -53,3 +53,7 @@ id select_type table type possible_keys key key_len ref rows Extra 1 SIMPLE таб ref инд0,инд01 инд0 5 const 1 Using where; Using index drop table таб; set names latin1; +select 3 into @v1; +explain select 3 into @v1; +id select_type table type possible_keys key key_len ref rows Extra +1 SIMPLE NULL NULL NULL NULL NULL NULL NULL No tables used |