mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 08:40:50 +00:00
Merge pull request #57569 from skyoct/fix/fix_format_error
Fix formatting string prompt error
This commit is contained in:
commit
c7ce2b5d5f
@ -123,7 +123,7 @@ namespace Format
|
||||
throw Exception(ErrorCodes::BAD_ARGUMENTS, "Cannot switch from automatic field numbering to manual field specification");
|
||||
is_plain_numbering = true;
|
||||
if (index_if_plain >= argument_number)
|
||||
throw Exception(ErrorCodes::BAD_ARGUMENTS, "Argument is too big for formatting");
|
||||
throw Exception(ErrorCodes::BAD_ARGUMENTS, "Not enough arguments to fill the placeholders in the format string");
|
||||
index_positions.back() = index_if_plain++;
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user