SET @@storage_engine = Falcon;
*** Bug #23818_I ***
DROP TABLE IF EXISTS t1;
DROP PROCEDURE IF EXISTS p1;
/* Does not fail with "b varchar(256) character set ucs2" */
CREATE TABLE t1 (a int, b varchar(1000) character set ucs2, c varchar(10000));
INSERT INTO t1 VALUES (null,null,null),(1,'',''),(2,'a','a');
CREATE INDEX i1 ON t1 (b(550));
CREATE PROCEDURE p1 ()
BEGIN
declare v int default 0;
while v < 100 do
SET @x = concat('update t1 set a = ', v,', b = repeat(0x', hex(rand()*10000),',rand()*549), c = repeat(0x', hex(rand()*255), ',rand()*9999)');
/* select v,@x; */
PREPARE stmt1 FROM @x;
EXECUTE stmt1;
SET v = v + 1;
END while;
END//
CALL p1()//
DROP TABLE t1;
DROP PROCEDURE p1;
