Skip to content

Commit

Permalink
Merge pull request #2400 from bocharov/master
Browse files Browse the repository at this point in the history
Fix DateTime vs DateTime('UTC') inconsistency on data read.
  • Loading branch information
alexey-milovidov authored May 25, 2018
2 parents 68ba523 + 3618842 commit dcebf08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbms/src/Storages/ITableDeclaration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ void ITableDeclaration::check(const NamesAndTypesList & provided_columns, const
throw Exception("There is no column with name " + name + ". There are columns: "
+ listOfColumns(available_columns), ErrorCodes::NO_SUCH_COLUMN_IN_TABLE);

if (it->second->getName() != jt->second->getName())
if (!it->second->equals(*jt->second))
throw Exception("Type mismatch for column " + name + ". Column has type "
+ jt->second->getName() + ", got type " + it->second->getName(), ErrorCodes::TYPE_MISMATCH);

Expand Down

0 comments on commit dcebf08

Please sign in to comment.