Skip to content

Commit

Permalink
Order the columns by attname for sorted Schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick van de Glind committed Dec 24, 2020
1 parent e33be5c commit ffab4d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/database/postgresql.ex
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ defimpl Plsm.Database, for: Plsm.Database.PostgreSQL do
AND pg_table_is_visible(pgc.oid)
AND NOT a.attisdropped
AND pgc.relname = '#{table.name}'
ORDER BY a.attnum;", [])
ORDER BY a.attname;", [])

result.rows
|> Enum.map(&to_column/1)
Expand Down

0 comments on commit ffab4d9

Please sign in to comment.