Skip to content

Commit

Permalink
Fix bug regarding order of fields in data editor
Browse files Browse the repository at this point in the history
  • Loading branch information
joshua-obritsch committed Aug 28, 2021
1 parent 26f4481 commit 3a087ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IHP/IDE/Data/Controller.hs
Expand Up @@ -167,7 +167,7 @@ fetchTableNames connection = do
fetchTableCols :: PG.Connection -> Text -> IO [ColumnDefinition]
fetchTableCols connection tableName = do
PG.query connection "SELECT column_name,data_type,column_default,CASE WHEN is_nullable='YES' THEN true ELSE false END FROM information_schema.columns where table_name = ?" (PG.Only tableName)
PG.query connection "SELECT column_name,data_type,column_default,CASE WHEN is_nullable='YES' THEN true ELSE false END FROM information_schema.columns where table_name = ? ORDER BY ordinal_position" (PG.Only tableName)
fetchRow :: PG.Connection -> Text -> [Text] -> IO [[DynamicField]]
fetchRow connection tableName primaryKeyValues = do
Expand Down

0 comments on commit 3a087ce

Please sign in to comment.