1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

A test case for Bug#6282 "Packet error with SELECT INTO"

(the bug itself is no longer repeatable).
This commit is contained in:
konstantin@mysql.com
2005-03-23 21:36:15 +03:00
parent 626fcc4390
commit 06cfe9a4a4
2 changed files with 17 additions and 0 deletions

View File

@ -520,3 +520,11 @@ SHOW VARIABLES LIKE 'table_cache';
Variable_name Value Variable_name Value
table_cache 1 table_cache 1
SET GLOBAL table_cache=DEFAULT; SET GLOBAL table_cache=DEFAULT;
create table t1 (a int);
select a into @x from t1;
Warnings:
Warning 1329 No data to FETCH
show warnings;
Level Code Message
Warning 1329 No data to FETCH
drop table t1;

View File

@ -388,3 +388,12 @@ SHOW VARIABLES LIKE 'MYISAM_DATA_POINTER_SIZE';
SET GLOBAL table_cache=-1; SET GLOBAL table_cache=-1;
SHOW VARIABLES LIKE 'table_cache'; SHOW VARIABLES LIKE 'table_cache';
SET GLOBAL table_cache=DEFAULT; SET GLOBAL table_cache=DEFAULT;
#
# Bug#6282 Packet error with SELECT INTO
#
create table t1 (a int);
select a into @x from t1;
show warnings;
drop table t1;