iafisher / sqliteparser

A parser for SQLite's dialect of SQL
https://sqliteparser.readthedocs.io/en/latest/
MIT License
1 stars 1 forks source link

Parse table level primary key constraints #8

Closed luxint closed 2 years ago

luxint commented 2 years ago

Hi,

I noticed that this create table statement is not parsed:

create table t1 (c1 text,c2 text,primary key(c1,c2))

as far as I know this I the only way to create a compound primary key in sqlite.

iafisher commented 2 years ago

Hi, thanks for the bug report. I've fixed this on the master branch. Do you need a new release to PyPI?

luxint commented 2 years ago

Hi Ian,,

Thanks for the quick fix! No need for me for an imminent release to PyPI