@@ -1,3 +1,4 @@
2------------------------------------------------------------------------------
3------------------------------------------------------------------------------
@@ -41,8 +42,12 @@ finishQueryWith parser conn q result = do
41 PQ.CommandOk -> queryErr "query resulted in a command response"
42 PQ.CommandOk -> queryErr "query resulted in a command response"
42 PQ.CopyOut -> queryErr "query: COPY TO is not supported"
43 PQ.CopyOut -> queryErr "query: COPY TO is not supported"
43 PQ.CopyIn -> queryErr "query: COPY FROM is not supported"
44 PQ.CopyIn -> queryErr "query: COPY FROM is not supported"
45+#if MIN_VERSION_postgresql_libpq(0,9,3)
44 PQ.CopyBoth -> queryErr "query: COPY BOTH is not supported"
46 PQ.CopyBoth -> queryErr "query: COPY BOTH is not supported"
48+#if MIN_VERSION_postgresql_libpq(0,9,2)
45 PQ.SingleTuple -> queryErr "query: single-row mode is not supported"
49 PQ.SingleTuple -> queryErr "query: single-row mode is not supported"
46 PQ.BadResponse -> throwResultError "query" result status
51 PQ.BadResponse -> throwResultError "query" result status
47 PQ.NonfatalError -> throwResultError "query" result status
52 PQ.NonfatalError -> throwResultError "query" result status
48 PQ.FatalError -> throwResultError "query" result status
53 PQ.FatalError -> throwResultError "query" result status
@@ -67,8 +72,7 @@ getRowWith parser row ncols conn result = do
69 (show (unCol col) ++ " slots in target type")
74 (show (unCol col) ++ " slots in target type")
70− "mismatch between number of columns to \
75+ "mismatch between number of columns to convert and number in target type")
71− \convert and number in target type")
72 Errors [] -> throwIO $ ConversionFailed "" Nothing "" "" "unknown error"
76 Errors [] -> throwIO $ ConversionFailed "" Nothing "" "" "unknown error"
73 Errors [x] -> throwIO x
77 Errors [x] -> throwIO x
74 Errors xs -> throwIO $ ManyErrors xs
78 Errors xs -> throwIO $ ManyErrors xs