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:
Vladimir C 2021-07-29 12:48:30 +03:00 committed by Vladimir Chebotarev
parent d8bc601dbf
commit 067cc763cc

View File

@ -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);
}
}
}