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

fix: EXPOSED-145 Quoted table name breaks CREATE SEQUENCE in Oracle #1836

Merged
merged 1 commit into from
Aug 17, 2023

Commits on Aug 16, 2023

  1. fix: EXPOSED-145 Quoted table name breaks create sequence in Oracle

    If a table with an autoincrement column is created and provided a table name that
    has escaped double quotes, the CREATE SEQUENCE statement throws a syntax error
    because of the double quotes.
    
    java.sql.SQLSyntaxErrorException: ORA-01741: illegal zero-length identifier
    Statement(s): CREATE SEQUENCE ""Parent"_id_seq" START WITH 1 MINVALUE 1 MAXVALUE 9223372036854775807
    
    Oracle is the only dialect that uses the fallback sequence name, so this has all
    double quotes now replaced, as is done for foreign key constraint names.
    bog-walk committed Aug 16, 2023
    Configuration menu
    Copy the full SHA
    6b98d02 View commit details
    Browse the repository at this point in the history