Style fixes

This commit is contained in:
Kostiantyn Storozhuk 2021-06-25 16:44:28 +08:00
parent 4a3145f586
commit 7516d39091
2 changed files with 2 additions and 2 deletions

View File

@ -563,7 +563,7 @@ namespace MySQLReplication
}
case MYSQL_TYPE_ENUM:
{
if((meta & 0xFF) == 1)
if ((meta & 0xFF) == 1)
{
UInt8 val = 0;
payload.readStrict(reinterpret_cast<char *>(&val), 1);

View File

@ -109,7 +109,7 @@ static NamesAndTypesList getColumnsList(const ASTExpressionList * columns_defini
/// Transforms MySQL ENUM's list of strings to ClickHouse string-integer pairs
/// For example ENUM('a', 'b', 'c') -> ENUM('a'=1, 'b'=2, 'c'=3)
/// Elements on a position further than 32767 are assigned negative values, starting with -32768.
/// Note: Enum would be transfomed to Enum8 if number of ellements is less then 128, otherwise it would be transformed to Enum16.
/// Note: Enum would be transformed to Enum8 if number of ellements is less then 128, otherwise it would be transformed to Enum16.
if (type_name_upper.find("ENUM") != String::npos)
{
UInt16 i = 0;