Skip to content

Commit

Permalink
More verbose error message when conversion function cannot parse valu…
Browse files Browse the repository at this point in the history
…e from string [#METR-22408].
  • Loading branch information
alexey-milovidov committed Aug 17, 2016
1 parent 09563dc commit e387d94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbms/src/Functions/FunctionsConversion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ void throwExceptionForIncompletelyParsedValue(
else
message_buf << " at begin of string";

if (to_type.isNumeric())
if (to_type.behavesAsNumber())
message_buf << ". Note: there are to" << to_type.getName() << "OrZero function, which returns zero instead of throwing exception.";
}

Expand Down

0 comments on commit e387d94

Please sign in to comment.