drawdb-io / drawdb-io/drawdb

[BUG] Import failed with quoted constraint name

Open
#230 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
39.5k
Forks
3.2k
Avg merge
10h 46m
Merged PRs (30d)
16

Description

**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:
```sql
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:
```sql
CREATE TABLE books (
id UUID NOT NULL,
CONSTRAINT PK_books PRIMARY KEY (id)
);
```

**Expected behavior**
SQL script successfully imported

**Screenshots**
![image](https://github.com/user-attachments/assets/98b212ba-cb69-4fb6-b007-e04876ab6052)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.