Closed rsoeldner closed 6 years ago
PostgreSQL Simple doesn't currently support record types, which is what you get when you put parentheses around a list of columns like that. Just remove them and it should work as expected.
getBlas :: Connection -> IO [Bla]
getBlas conn = query_ conn stmt
where
stmt :: Query
stmt = "SELECT id, name, tmp FROM Bla"
@cimmanon thank you verry much :+1:
When selecting partial results from the database i receive
My table looks like:
My corresponding type:
I created an
FromRow
instance :But when trying to select them:
Thanks again for the help :+1: