8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d659375 commit 034713eCopy full SHA for 034713e
src/Database/PostgreSQL/Protocol/Decoders.hs
@@ -115,7 +115,7 @@ decodeCommandResult s =
115
"MOVE" -> MoveCompleted <$> readRows rest
116
"FETCH" -> FetchCompleted <$> readRows rest
117
"COPY" -> CopyCompleted <$> readRows rest
118
- _ -> fail "Unknown command in command result"
+ _ -> pure CommandOk
119
where
120
space = 32
121
readRows = maybe (fail "Invalid rows format in command result")
src/Database/PostgreSQL/Protocol/Types.hs
@@ -47,6 +47,8 @@ data CommandResult
47
| MoveCompleted RowsCount
48
| FetchCompleted RowsCount
49
| CopyCompleted RowsCount
50
+ -- all other commands
51
+ | CommandOk
52
deriving (Show)
53
54
-- | Parameters of the current connection.
0 commit comments