Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generating the schema: Database field order is not honored in the generated schema #44

Open
fdesp87 opened this issue Oct 26, 2022 · 0 comments

Comments

@fdesp87
Copy link

fdesp87 commented Oct 26, 2022

Given that fields are alphabetically classified by gnatcoll_all2ada.

We must assume that the order of fields in the Database is defined by the Database Designer and such order must not be changed.

It is in gnatcoll-sql-postgres-builder.adb procedure For_Each_Field having the clause “ ORDER BY pg_attribute.attname”. Please comment it out.

For more explanations, you can read the report
https://github.com/fdesp87/gnatcoll-db/examples/mytests/Report.odt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant