#
# Bug #60212: Server crash with corrupt fetch buffer
# http://bugs.mysql.com/bug.php?id=60212
#
# Fixed in: Still open!
# Seems to be fixed in 5.5.20
# Happens in 5.5.14
# Does not happen in 5.1.44
#

-- Run this twice:

DROP TABLE IF EXISTS test;
CREATE TABLE test (
    pk  INTEGER   NOT NULL PRIMARY KEY ,
    c1  VARCHAR(2000) CHARACTER SET ucs2 NULL );
INSERT INTO test VALUES( 1, 'hello' );
INSERT INTO test VALUES( 2, NULL );
INSERT INTO test VALUES( 3, 'rat' );
INSERT INTO test VALUES( 4, '' );
INSERT INTO test VALUES( 5, REPEAT( 'nvarchar', 250 ) );
INSERT INTO test VALUES( 6, 'dummy' );
INSERT INTO test VALUES( 7, 'dummy' );
INSERT INTO test VALUES( 8, NULL );
SELECT * FROM test;
