-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
ignore sequence / identity order it in other dbs, only use it on oracle #10207
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
Comments
on_null is also oracle only, but it's currently correctly ignored by other dialects |
why dont we do that for now, just dont render ORDER on other dialects |
also why 1.4 ? |
It's a bug that is also on 1.4. the fix there would just be to ignore the order |
Federico Caselli has proposed a fix for this issue in the main branch: Fix rendering of order in sequences and identity columns. https://gerrit.sqlalchemy.org/c/sqlalchemy/sqlalchemy/+/4799 |
Federico Caselli has proposed a fix for this issue in the rel_1_4 branch: Fix rendering of order in sequences and identity columns. https://gerrit.sqlalchemy.org/c/sqlalchemy/sqlalchemy/+/4800 |
The cherry pick for 1.4 is partial. The change on v2 break alembic so I'll have to check it better |
Federico Caselli has proposed a fix for this issue in the rel_1_4 branch: Fix rendering of order in sequences and identity columns. https://gerrit.sqlalchemy.org/c/sqlalchemy/sqlalchemy/+/4827 |
Federico Caselli has proposed a fix for this issue in the main branch: Fix rendering of order in sequences and identity columns. https://gerrit.sqlalchemy.org/c/sqlalchemy/sqlalchemy/+/4828 |
additional changes will be done in #10247 |
Fixes the rendering of the Oracle only ``order`` attribute in Sequence and Identity that was passed also when rendering the DDL in PostgreSQL. Fixes: #10207 Change-Id: I5b918eab38ba68fa10a213a79e2bd0cc48401a02 (cherry picked from commit 5615ab52c81e2343330069f91ec3544840519956)
plan is for 1.4 to just make pg ignore order and to rename in in v2, deprecating order
Discussed in #10203
Originally posted by AbdealiLoKo August 8, 2023
I believe this is a bug - but reporting it here just in case I am wrong ... as I am using
Identity()
for the first time.I am trying to use
Identity()
for postgres and oracle in my code.I generally support: MySQL, sqlite, mssql, oracle, and postgres in my application
Reproducible example:
This gives me the output:
When I run the last one i postgres, it gives the following error:
I couldn't find any documentation that says
ORDER
is a valid concept in postgres. So, I feel like sqlalchemy is generating it wrongly.ORDER
is only valid for oracle (For RAC support)I am using:
The text was updated successfully, but these errors were encountered: