Skip to content

Commit d2a154b

Browse files
Fix PQFormat instances
1 parent 08ed4c0 commit d2a154b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: src/Database/PostgreSQL/PQTypes/Format.hs

+3-3
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,13 @@ instance PQFormat Double where
8686
pqFormat = BS.pack "%float8"
8787

8888
instance PQFormat Word16 where
89-
pqFormat = BS.pack "%word2"
89+
pqFormat = BS.pack "%int2"
9090

9191
instance PQFormat Word32 where
92-
pqFormat = BS.pack "%word4"
92+
pqFormat = BS.pack "%int4"
9393

9494
instance PQFormat Word64 where
95-
pqFormat = BS.pack "%word8"
95+
pqFormat = BS.pack "%int8"
9696

9797
-- CHAR
9898

0 commit comments

Comments
 (0)