You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
MCOL-4696: get rid of boost::iequals
This commit is contained in:
committed by
Leonid Fedorov
parent
4aa281645e
commit
4b411b3968
@ -37,7 +37,6 @@
|
||||
using namespace std;
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <boost/algorithm/string/case_conv.hpp>
|
||||
#include <boost/tokenizer.hpp>
|
||||
using namespace boost;
|
||||
|
||||
@ -1014,8 +1013,13 @@ int ProcessDDLStatement(string& ddlStatement, string& schema, const string& tabl
|
||||
if (autoIncre)
|
||||
{
|
||||
// Check whether there is a column with autoincrement already
|
||||
if ((isAnyAutoincreCol) &&
|
||||
!(boost::iequals(autoiColName, createTable->fTableDef->fColumns[i]->fName)))
|
||||
bool isAutoIncrementColumn =
|
||||
default_table_charset ? datatypes::CollationAwareComparator(default_table_charset)(
|
||||
autoiColName, createTable->fTableDef->fColumns[i]->fName)
|
||||
: datatypes::ASCIIStringCaseInsensetiveEquals(
|
||||
autoiColName, createTable->fTableDef->fColumns[i]->fName);
|
||||
|
||||
if (isAnyAutoincreCol && !isAutoIncrementColumn)
|
||||
{
|
||||
rc = 1;
|
||||
thd->get_stmt_da()->set_overwrite_status(true);
|
||||
@ -1060,8 +1064,14 @@ int ProcessDDLStatement(string& ddlStatement, string& schema, const string& tabl
|
||||
}
|
||||
}
|
||||
|
||||
if (!autoIncre && isAnyAutoincreCol &&
|
||||
(boost::iequals(autoiColName, createTable->fTableDef->fColumns[i]->fName)))
|
||||
|
||||
bool isAutoIncrementColumn =
|
||||
default_table_charset ? datatypes::CollationAwareComparator(default_table_charset)(
|
||||
autoiColName, createTable->fTableDef->fColumns[i]->fName)
|
||||
: datatypes::ASCIIStringCaseInsensetiveEquals(
|
||||
autoiColName, createTable->fTableDef->fColumns[i]->fName);
|
||||
|
||||
if (!autoIncre && isAnyAutoincreCol && isAutoIncrementColumn)
|
||||
{
|
||||
autoIncre = true;
|
||||
matchedCol = true;
|
||||
|
Reference in New Issue
Block a user