Skip to content

Commit

Permalink
fix up some compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Tishj committed May 30, 2024
1 parent 2782b0c commit 010227c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/quack_types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -562,12 +562,11 @@ ConvertPostgresToDuckValue(Datum value, duckdb::Vector &result, idx_t offset) {
case duckdb::LogicalTypeId::TINYINT: {
auto aux_info = type.GetAuxInfoShrPtr();
if (aux_info && dynamic_cast<IsBpChar *>(aux_info.get())) {
auto res = DatumGetBpCharPP(value);
auto bpchar_length = VARSIZE_ANY_EXHDR(value);
auto bpchar_data = VARDATA_ANY(value);

if (bpchar_length != 1) {
elog(ERROR, "Expected 1 length BPCHAR for TINYINT marked with IsBpChar at offset %d", offset);
elog(ERROR, "Expected 1 length BPCHAR for TINYINT marked with IsBpChar at offset %llu", offset);
}
Append<int8_t>(result, bpchar_data[0], offset);
} else {
Expand Down

0 comments on commit 010227c

Please sign in to comment.