Closed YPares closed 1 year ago
I experience the same problem when the database is also used by another application (and creates tables in another schema). I think the reason is because in selda-postgresql
, pgGetTableInfo
doesn't order the columns obtained from information_schema.columns
based on the ordinal_position
. So you can make no assumption that these columns will be returned in the same order than the fields of the Haskell datatype.
Validation/migration tests on master fail with Postgresql 13.7, 14.4 and 14.5.
(Running
stack test --flag selda-tests:postgres
)