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:33:34 -05:00
committed by Laurence Isla
parent ec0f99c686
commit cd62e39cd1
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