mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 03:12:43 +00:00
Update src/Functions/substringIndex.cpp
Co-authored-by: Yakov Olkhovskiy <99031427+yakov-olkhovskiy@users.noreply.github.com>
This commit is contained in:
parent
40ded2eca0
commit
f049914c2f
@ -57,7 +57,7 @@ namespace
|
|||||||
arguments[1]->getName(),
|
arguments[1]->getName(),
|
||||||
getName());
|
getName());
|
||||||
|
|
||||||
if (!isNativeNumber(arguments[2]))
|
if (!isNativeInteger(arguments[2]))
|
||||||
throw Exception(
|
throw Exception(
|
||||||
ErrorCodes::ILLEGAL_TYPE_OF_ARGUMENT,
|
ErrorCodes::ILLEGAL_TYPE_OF_ARGUMENT,
|
||||||
"Illegal type {} of third argument of function {}",
|
"Illegal type {} of third argument of function {}",
|
||||||
|
Loading…
Reference in New Issue
Block a user