drawdb icon indicating copy to clipboard operation
drawdb copied to clipboard

[BUG] Import failed with quoted constraint name

Open Igorgro opened this issue 5 months ago • 1 comments

Describe the bug When SQL code contains quoted constraint name, it is failed to import

To Reproduce Steps to reproduce the behavior:

  1. Try to import the following code:
    CREATE TABLE books (
        id UUID NOT NULL,
        CONSTRAINT "PK_books" PRIMARY KEY (id)
    );
    
  2. See error (on attached screenshot)
  3. The following code does not produce error:
    CREATE TABLE books (
        id UUID NOT NULL,
        CONSTRAINT PK_books PRIMARY KEY (id)
    );
    

Expected behavior SQL script successfully imported

Screenshots image

Igorgro avatar Aug 26 '24 07:08 Igorgro