From c1eecfdede35aa2724cb36b570541a4f6535fc79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Choutri?= Date: Wed, 8 Jan 2025 15:03:31 +0100 Subject: [PATCH] Fix PQFormat instances --- src/Database/PostgreSQL/PQTypes/Format.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Database/PostgreSQL/PQTypes/Format.hs b/src/Database/PostgreSQL/PQTypes/Format.hs index 3791d44..e78dac2 100644 --- a/src/Database/PostgreSQL/PQTypes/Format.hs +++ b/src/Database/PostgreSQL/PQTypes/Format.hs @@ -86,13 +86,13 @@ instance PQFormat Double where pqFormat = BS.pack "%float8" instance PQFormat Word16 where - pqFormat = BS.pack "%word2" + pqFormat = BS.pack "%int2" instance PQFormat Word32 where - pqFormat = BS.pack "%word4" + pqFormat = BS.pack "%int4" instance PQFormat Word64 where - pqFormat = BS.pack "%word8" + pqFormat = BS.pack "%int8" -- CHAR