mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
Update src/Storages/StorageS3.cpp
StringRef in fmt::format throws `fmt::v7::format_error: cannot switch from manual to automatic argument indexing`
This commit is contained in:
parent
d8bc601dbf
commit
067cc763cc
@ -486,9 +486,8 @@ private:
|
||||
/// Need to convert to UInt32 because UInt8 can't be passed to format due to "mixing character types is disallowed".
|
||||
UInt32 invalid_char_byte = static_cast<UInt32>(static_cast<UInt8>(*i));
|
||||
throw DB::Exception(ErrorCodes::CANNOT_PARSE_TEXT,
|
||||
"Illegal character '\\x{0:02x}' in partition key starting with '{}'.",
|
||||
invalid_char_byte,
|
||||
StringRef(str.data, i - str.data));
|
||||
"Illegal character '\\x{0:02x}' in partition key",
|
||||
invalid_char_byte);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user