joereynolds / joereynolds/sql-lint

Claims there is syntax errors when there is not

Open
#244 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
459
Forks
44
PR merge metrics
No merged PRs in 30d

Description

### Sample Code:

```
DROP TABLE
IF EXISTS app_public.tablename CASCADE;

-- create table statement column definition
id SERIAL PRIMARY KEY,

id BIGSERIAL PRIMARY KEY,
```

### Errors:

```
[error] syntax error at or near "DROP"
[error] syntax error at or near "SERIAL"
[error] syntax error at or near "BIGSERIAL"
```
### Version Info:

DB: Postgres 14.3
```
❯ sql-lint --version
1.0.0
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.