You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-27 21:01:50 +03:00
Fix autoincrement filtering problems with utf-8 (#2964)
MCOL-5572: Widen the autoincrement column to accomodate utf-8 encoded into weights with strnxfrm function.
This commit is contained in:
@ -0,0 +1,20 @@
|
||||
SET default_storage_engine=columnstore;
|
||||
DROP DATABASE IF EXISTS mcol5572;
|
||||
CREATE DATABASE mcol5572;
|
||||
USE mcol5572;
|
||||
create table foo (col1 int) engine=columnstore;
|
||||
insert into foo values ( 1 ), ( 2 ), ( 3 ), ( 4 ), ( 5 );
|
||||
Alter table foo add column newcol bigint comment 'autoincrement';
|
||||
select callastinsertid('foo');
|
||||
callastinsertid('foo')
|
||||
5
|
||||
select tablename, autoincrement, nextvalue from calpontsys.syscolumn where autoincrement = 'y' and `schema`='mcol5572' and tablename='foo';
|
||||
tablename autoincrement nextvalue
|
||||
foo y 6
|
||||
select tablename, autoincrement, nextvalue from calpontsys.syscolumn where autoincrement != 'n' and `schema`='mcol5572' and tablename='foo';
|
||||
tablename autoincrement nextvalue
|
||||
foo y 6
|
||||
select tablename, autoincrement, nextvalue from calpontsys.syscolumn where autoincrement = 'n' and `schema`='mcol5572' and tablename='foo';
|
||||
tablename autoincrement nextvalue
|
||||
foo n 1
|
||||
DROP DATABASE mcol5572;
|
@ -0,0 +1,22 @@
|
||||
--source ../include/have_columnstore.inc
|
||||
|
||||
SET default_storage_engine=columnstore;
|
||||
|
||||
--disable_warnings
|
||||
DROP DATABASE IF EXISTS mcol5572;
|
||||
--enable_warnings
|
||||
|
||||
|
||||
CREATE DATABASE mcol5572;
|
||||
USE mcol5572;
|
||||
|
||||
create table foo (col1 int) engine=columnstore;
|
||||
insert into foo values ( 1 ), ( 2 ), ( 3 ), ( 4 ), ( 5 );
|
||||
Alter table foo add column newcol bigint comment 'autoincrement';
|
||||
select callastinsertid('foo');
|
||||
select tablename, autoincrement, nextvalue from calpontsys.syscolumn where autoincrement = 'y' and `schema`='mcol5572' and tablename='foo';
|
||||
select tablename, autoincrement, nextvalue from calpontsys.syscolumn where autoincrement != 'n' and `schema`='mcol5572' and tablename='foo';
|
||||
select tablename, autoincrement, nextvalue from calpontsys.syscolumn where autoincrement = 'n' and `schema`='mcol5572' and tablename='foo';
|
||||
|
||||
DROP DATABASE mcol5572;
|
||||
|
Reference in New Issue
Block a user