1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00
Files
mariadb-columnstore-engine/mysql-test/columnstore/bugfixes/mcol-4758.result
David.Hall 237cad347f MCOL-4758 Limit LONGTEXT and LONGBLOB to 16MB (#1995)
MCOL-4758 Limit LONGTEXT and LONGBLOB to 16MB

Also add the original test case from MCOL-3879.
2021-07-05 02:09:41 -04:00

15 lines
631 B
Plaintext

DROP DATABASE IF EXISTS `mcol_4758`;
CREATE DATABASE `mcol_4758`;
USE `mcol_4758`;
CREATE TABLE src (c0 INT, cLB LONGBLOB, cLT LONGTEXT)engine=columnstore default charset utf8mb4;
SELECT column_name, data_type, column_length FROM information_schema.columnstore_columns WHERE hex(table_schema)=hex('mcol_4758') and hex(table_name)=hex('src');
column_name data_type column_length
c0 int 4
clb blob 16777215
clt text 16777215
INSERT INTO src VALUES (1, "Pretty Bloby Thing", "This is some text");
select * from src where c0=1 and substr(cLT, 1, 4)="This";
c0 cLB cLT
1 Pretty Bloby Thing This is some text
DROP DATABASE `mcol_4758`;