Update src/Functions/substringIndex.cpp

Co-authored-by: Yakov Olkhovskiy <99031427+yakov-olkhovskiy@users.noreply.github.com>
This commit is contained in:
李扬 2023-06-29 10:19:19 +08:00 committed by GitHub
parent 40ded2eca0
commit f049914c2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {}",