You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-01 06:46:55 +03:00
MCOL-4144 Enable lower_case_table_names
Create tables and schemas with lower case name only if the flag is set. During operations, convert to lowercase in plugin. Byt the time a query gets to ExeMgr, DDLProc etc., everything must be lower case if the flag is set, and undisturbed if not.
This commit is contained in:
@ -158,7 +158,8 @@ SimpleColumn::SimpleColumn(const string& token, const uint32_t sessionID):
|
||||
SimpleColumn::SimpleColumn(const string& schemaName,
|
||||
const string& tableName,
|
||||
const string& columnName,
|
||||
const uint32_t sessionID):
|
||||
const uint32_t sessionID,
|
||||
const int lower_case_table_names) :
|
||||
ReturnedColumn(sessionID),
|
||||
fSchemaName (schemaName),
|
||||
fTableName (tableName),
|
||||
@ -167,13 +168,20 @@ SimpleColumn::SimpleColumn(const string& schemaName,
|
||||
{
|
||||
setOID();
|
||||
fDistinct = false;
|
||||
if (lower_case_table_names)
|
||||
{
|
||||
boost::algorithm::to_lower(fSchemaName);
|
||||
boost::algorithm::to_lower(fTableName);
|
||||
}
|
||||
boost::algorithm::to_lower(fColumnName);
|
||||
}
|
||||
|
||||
SimpleColumn::SimpleColumn(const string& schemaName,
|
||||
const string& tableName,
|
||||
const string& columnName,
|
||||
const bool isColumnStore,
|
||||
const uint32_t sessionID):
|
||||
const uint32_t sessionID,
|
||||
const int lower_case_table_names) :
|
||||
ReturnedColumn(sessionID),
|
||||
fSchemaName (schemaName),
|
||||
fTableName (tableName),
|
||||
@ -182,8 +190,13 @@ SimpleColumn::SimpleColumn(const string& schemaName,
|
||||
{
|
||||
if (isColumnStore)
|
||||
setOID();
|
||||
|
||||
fDistinct = false;
|
||||
if (lower_case_table_names)
|
||||
{
|
||||
boost::algorithm::to_lower(fSchemaName);
|
||||
boost::algorithm::to_lower(fTableName);
|
||||
}
|
||||
boost::algorithm::to_lower(fColumnName);
|
||||
}
|
||||
|
||||
SimpleColumn::SimpleColumn (const SimpleColumn& rhs, const uint32_t sessionID):
|
||||
|
Reference in New Issue
Block a user