ClickHouse/tests/queries/0_stateless/02123_MySQLWire_regression.sql
Azat Khuzhin 6aa94ae032 Fix MySQLWire format (in case of multiple writes)
In case of multiple writes File() engine will set doNotWritePrefix(),
and this will avoid serializations initilization, move this to do this
always.

Fixes: #31004
2021-11-20 15:26:21 +03:00

7 lines
302 B
SQL

DROP TABLE IF EXISTS table_MySQLWire;
CREATE TABLE table_MySQLWire (x UInt64) ENGINE = File(MySQLWire);
INSERT INTO table_MySQLWire SELECT number FROM numbers(10);
-- regression for not initializing serializations
INSERT INTO table_MySQLWire SELECT number FROM numbers(10);
DROP TABLE table_MySQLWire;