summaryrefslogtreecommitdiff
path: root/sql/sql_yacc.yy
diff options
context:
space:
mode:
authorunknown <pem@mysql.comhem.se>2004-07-29 16:52:17 +0200
committerunknown <pem@mysql.comhem.se>2004-07-29 16:52:17 +0200
commit96aeecf23780d45cdc9f8663fe8e85c675d23abf (patch)
treea8eb63a6cddff6654330bf174cafa685e15e1cac /sql/sql_yacc.yy
parent26c755ab54c64c14c2cfb24730fb0c5e37bc3250 (diff)
downloadmariadb-git-96aeecf23780d45cdc9f8663fe8e85c675d23abf.tar.gz
Fixed BUG#4318: Stored Procedure packet error if HANDLER statement,
at least partially. It doesn't crash or give packets out of order any more, but it's unclear why it doesn't actually return anything from within an SP. This should be investigated at some point, but for the moment this will have to do. (It is a rather obscure feature... :) mysql-test/r/sp.result: Test case for BUG#4318. mysql-test/t/sp.test: Test case for BUG#4318. sql/sql_yacc.yy: Recognize HANDLER READ as another statement that might result in multiple results.
Diffstat (limited to 'sql/sql_yacc.yy')
-rw-r--r--sql/sql_yacc.yy3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy
index 9458b3830bf..2939090e948 100644
--- a/sql/sql_yacc.yy
+++ b/sql/sql_yacc.yy
@@ -1713,7 +1713,8 @@ sp_proc_stmt:
lex->sql_command == SQLCOM_SHOW_CREATE_FUNC ||
lex->sql_command == SQLCOM_SHOW_STATUS_PROC ||
lex->sql_command == SQLCOM_SHOW_STATUS_FUNC ||
- lex->sql_command == SQLCOM_ANALYZE)
+ lex->sql_command == SQLCOM_ANALYZE ||
+ lex->sql_command == SQLCOM_HA_READ)
{
/* We maybe have one or more SELECT without INTO */
lex->sphead->m_multi_results= TRUE;