Skip to content

GENERATED ... AS IDENTITY (options) wrapped in an extra pair of parentheses, fails to load in PostgreSQL #1978

Description

@Lunch418

ora2pg version: 25.0

When converting an Oracle IDENTITY column with explicit sequence options, the generated PostgreSQL DDL wraps the options clause in an extra, redundant pair of parentheses. The result fails to load.

Oracle source:

CREATE TABLE customers (
    customer_id NUMBER GENERATED ALWAYS AS IDENTITY (START WITH 1 INCREMENT BY 1),
    name        VARCHAR2(100)
);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions