提交 189c2845 编写于 作者: T tao jiang

fix if statement code style check

上级 70ef84ee
......@@ -332,12 +332,12 @@ void TabSeparatedRowInputFormat::tryDeserializeField(const DataTypePtr & type, I
if (column_indexes_for_input_fields[file_column])
{
// check null value for type is not nullable. don't cross buffer bound for simplicity, so maybe missing some case
if(!type->isNullable() && !in.eof())
if (!type->isNullable() && !in.eof())
{
if(*in.position() == '\\' && in.available() >= 2)
if (*in.position() == '\\' && in.available() >= 2)
{
++in.position();
if(*in.position() == 'N')
if (*in.position() == 'N')
{
++in.position();
throw Exception("unexpected Null value of not Nullable type", ErrorCodes::INCORRECT_DATA);
......
......@@ -145,7 +145,7 @@ bool RowInputFormatWithDiagnosticInfo::deserializeFieldAndPrintDiagnosticInfo(co
{
std::rethrow_exception(exception);
}
catch (DB::Exception e)
catch (const DB::Exception & e)
{
out << e.what();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册