1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-6566 Different INSERT behaviour on bad bytes with and without character set conversion

This commit is contained in:
Alexander Barkov
2015-03-13 16:51:36 +04:00
parent 702fba1511
commit 197afb413f
42 changed files with 1900 additions and 253 deletions

View File

@ -22,13 +22,15 @@ SHOW TABLE STATUS LIKE 't1';
--disable_warnings
--disable_query_log
ALTER TABLE test.t1 ADD code VARCHAR(16) NOT NULL;
let $1= 221;
while ($1)
{
eval INSERT INTO test.t1 VALUES(CHAR(254-$1));
eval INSERT INTO test.t1 VALUES(CHAR(254-$1), HEX(254-$1));
dec $1;
}
DELETE FROM test.t1 WHERE CHAR_LENGTH(a) <> 1;
DELETE FROM test.t1 WHERE a='?' AND code<>'3F';
--enable_query_log
--enable_warnings