From 010227c7b3df61b335843681c652bc1313738c35 Mon Sep 17 00:00:00 2001 From: Tishj Date: Thu, 30 May 2024 08:59:19 +0200 Subject: [PATCH] fix up some compiler warnings --- src/quack_types.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/quack_types.cpp b/src/quack_types.cpp index acf18391..2fcf57e9 100644 --- a/src/quack_types.cpp +++ b/src/quack_types.cpp @@ -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(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(result, bpchar_data[0], offset); } else {