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
changes to match upmerge from 10.4
This commit is contained in:
@ -2374,14 +2374,14 @@ int ha_mcs_impl_create_(const char* name, TABLE* table_arg, HA_CREATE_INFO* crea
|
|||||||
(thd->lex->create_info.like()))
|
(thd->lex->create_info.like()))
|
||||||
{
|
{
|
||||||
TABLE_SHARE *share = table_arg->s;
|
TABLE_SHARE *share = table_arg->s;
|
||||||
my_bitmap_map *old_map; // To save the read_set
|
MY_BITMAP *old_map; // To save the read_set
|
||||||
char datatype_buf[MAX_FIELD_WIDTH], def_value_buf[MAX_FIELD_WIDTH];
|
char datatype_buf[MAX_FIELD_WIDTH], def_value_buf[MAX_FIELD_WIDTH];
|
||||||
String datatype, def_value;
|
String datatype, def_value;
|
||||||
ostringstream oss;
|
ostringstream oss;
|
||||||
string tbl_name = "`" + string(share->db.str) + "`.`" + string(share->table_name.str) + "`";
|
string tbl_name = "`" + string(share->db.str) + "`.`" + string(share->table_name.str) + "`";
|
||||||
|
|
||||||
// Save the current read_set map and mark it for read
|
// Save the current read_set map and mark it for read
|
||||||
old_map= tmp_use_all_columns(table_arg, table_arg->read_set);
|
old_map= tmp_use_all_columns(table_arg, &table_arg->read_set);
|
||||||
|
|
||||||
oss << "CREATE TABLE " << tbl_name << " (";
|
oss << "CREATE TABLE " << tbl_name << " (";
|
||||||
|
|
||||||
@ -2475,7 +2475,7 @@ int ha_mcs_impl_create_(const char* name, TABLE* table_arg, HA_CREATE_INFO* crea
|
|||||||
oss << ";";
|
oss << ";";
|
||||||
stmt = oss.str();
|
stmt = oss.str();
|
||||||
|
|
||||||
tmp_restore_column_map(table_arg->read_set, old_map);
|
tmp_restore_column_map(&table_arg->read_set, old_map);
|
||||||
}
|
}
|
||||||
|
|
||||||
rc = ProcessDDLStatement(stmt, db, tbl, tid2sid(thd->thread_id), emsg, compressiontype, isAnyAutoincreCol, startValue, columnName, create_info->default_table_charset);
|
rc = ProcessDDLStatement(stmt, db, tbl, tid2sid(thd->thread_id), emsg, compressiontype, isAnyAutoincreCol, startValue, columnName, create_info->default_table_charset);
|
||||||
|
Reference in New Issue
Block a user