Commit 3170a8f9 authored by unknown's avatar unknown

Fixed BUG#5279: Stored procedure packets out of order if CHECKSUM TABLE.


mysql-test/r/sp.result:
  New testcase for BUG#5251.
mysql-test/t/sp.test:
  New testcase for BUG#5251.
sql/sp_head.cc:
  Added checksum to the list of statements that return result sets.
parent acfd7fbf
...@@ -1755,6 +1755,15 @@ where db='test' and name='bug5251' and created = @c1| ...@@ -1755,6 +1755,15 @@ where db='test' and name='bug5251' and created = @c1|
count(*) count(*)
1 1
drop procedure bug5251| drop procedure bug5251|
create procedure bug5251()
checksum table t1|
call bug5251()|
Table Checksum
test.t1 0
call bug5251()|
Table Checksum
test.t1 0
drop procedure bug5251|
drop table if exists fac| drop table if exists fac|
create table fac (n int unsigned not null primary key, f bigint unsigned)| create table fac (n int unsigned not null primary key, f bigint unsigned)|
create procedure ifac(n int unsigned) create procedure ifac(n int unsigned)
......
...@@ -1914,6 +1914,16 @@ select count(*) from mysql.proc ...@@ -1914,6 +1914,16 @@ select count(*) from mysql.proc
drop procedure bug5251| drop procedure bug5251|
#
# BUG#5279: Stored procedure packets out of order if CHECKSUM TABLE
#
create procedure bug5251()
checksum table t1|
call bug5251()|
call bug5251()|
drop procedure bug5251|
# #
# Some "real" examples # Some "real" examples
......
...@@ -56,6 +56,7 @@ sp_multi_results_command(enum enum_sql_command cmd) ...@@ -56,6 +56,7 @@ sp_multi_results_command(enum enum_sql_command cmd)
{ {
switch (cmd) { switch (cmd) {
case SQLCOM_ANALYZE: case SQLCOM_ANALYZE:
case SQLCOM_CHECKSUM:
case SQLCOM_HA_READ: case SQLCOM_HA_READ:
case SQLCOM_SHOW_BINLOGS: case SQLCOM_SHOW_BINLOGS:
case SQLCOM_SHOW_BINLOG_EVENTS: case SQLCOM_SHOW_BINLOG_EVENTS:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment