fix: empty row on handler function

Closes https://github.com/PostgREST/postgrest/issues/3126
This commit is contained in:
steve-chavez
2023-12-20 16:18:09 -05:00
committed by Steve Chavez
parent 1680a6eed3
commit 3af63cb94c
4 changed files with 15 additions and 1 deletions
+2 -1
View File
@@ -157,7 +157,8 @@ preparePlanRows countQuery =
standardRow :: Bool -> HD.Row ResultSet
standardRow noLocation =
RSStandard <$> nullableColumn HD.int8 <*> column HD.int8
<*> (if noLocation then pure mempty else fmap splitKeyValue <$> arrayColumn HD.bytea) <*> column HD.bytea
<*> (if noLocation then pure mempty else fmap splitKeyValue <$> arrayColumn HD.bytea)
<*> (fromMaybe mempty <$> nullableColumn HD.bytea)
<*> nullableColumn HD.bytea
<*> nullableColumn HD.text
<*> nullableColumn HD.int8