1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +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:
David Hall
2020-09-21 11:31:44 -05:00
parent 1c94e310ff
commit 35c4b66a67
32 changed files with 468 additions and 412 deletions

View File

@ -182,14 +182,12 @@ uint8_t WE_DDLCommandProc::writeSystable(ByteStream& bs, std::string& err)
if (TABLENAME_COL == column.tableColName.column)
{
std::string tablename = tableDef.fQualifiedName->fName;
boost::to_lower(tablename);
colTuple.data = tablename;
tmpStr = tablename;
}
else if (SCHEMA_COL == column.tableColName.column)
{
std::string schema = tableDef.fQualifiedName->fSchema;
boost::to_lower(schema);
colTuple.data = schema;
tmpStr = schema;
}
@ -519,13 +517,11 @@ uint8_t WE_DDLCommandProc::writeCreateSyscolumn(ByteStream& bs, std::string& err
if (SCHEMA_COL == column.tableColName.column)
{
boost::to_lower(qualifiedName.fSchema);
colTuple.data = qualifiedName.fSchema;
tmpStr = qualifiedName.fSchema;
}
else if (TABLENAME_COL == column.tableColName.column)
{
boost::to_lower(qualifiedName.fName);
colTuple.data = qualifiedName.fName;
tmpStr = qualifiedName.fName;
}
@ -916,13 +912,11 @@ uint8_t WE_DDLCommandProc::writeSyscolumn(ByteStream& bs, std::string& err)
if (SCHEMA_COL == column.tableColName.column)
{
boost::to_lower(schema);
colTuple.data = schema;
tmpStr = schema;
}
else if (TABLENAME_COL == column.tableColName.column)
{
boost::to_lower(tablename);
colTuple.data = tablename;
tmpStr = tablename;
}