You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
Merge pull request #2912 from tntnatbry/MCOL-5005
MCOL-5005 Add charset number to system catalog.
This commit is contained in:
@ -2515,7 +2515,8 @@ int ha_mcs_impl_create_(const char* name, TABLE* table_arg, HA_CREATE_INFO* crea
|
||||
const CHARSET_INFO* field_cs = (*field)->charset();
|
||||
if (field_cs && (!share->table_charset || field_cs->number != share->table_charset->number))
|
||||
{
|
||||
oss << " CHARACTER SET " << field_cs->cs_name.str;
|
||||
oss << " CHARACTER SET " << field_cs->cs_name.str <<
|
||||
" COLLATE " << field_cs->coll_name.str;
|
||||
}
|
||||
}
|
||||
|
||||
@ -2555,7 +2556,8 @@ int ha_mcs_impl_create_(const char* name, TABLE* table_arg, HA_CREATE_INFO* crea
|
||||
|
||||
if (share->table_charset)
|
||||
{
|
||||
oss << " DEFAULT CHARSET=" << share->table_charset->cs_name.str;
|
||||
oss << " DEFAULT CHARSET=" << share->table_charset->cs_name.str <<
|
||||
" COLLATE=" << share->table_charset->coll_name.str;
|
||||
}
|
||||
|
||||
// Process table level options such as MIN_ROWS, MAX_ROWS, COMMENT
|
||||
|
@ -41,6 +41,7 @@ create table if not exists syscolumn (`schema` varchar(128),
|
||||
minvalue varchar(64),
|
||||
`maxvalue` varchar(64),
|
||||
compressiontype integer,
|
||||
nextvalue bigint) engine=columnstore comment='SCHEMA SYNC ONLY';
|
||||
nextvalue bigint,
|
||||
charsetnum int not null default 0) engine=columnstore comment='SCHEMA SYNC ONLY';
|
||||
|
||||
DELIMITER ;
|
||||
DELIMITER ;
|
||||
|
Reference in New Issue
Block a user