penberg / limbo

Limbo is a work-in-progress, in-process OLTP database management system, compatible with SQLite.
MIT License
896 stars 49 forks source link

separate PRIMARY KEY definition does not work in BTreeTable::from_sql #96

Closed haaawk closed 1 month ago

haaawk commented 1 month ago

BTreeTable::from_sql does not take into account PRIMARY KEY definition that's not inline. For example:

CREATE TABLE t1 (a INTEGER, b TEXT, PRIMARY KEY(a));

Will not mark column a as a primary key column.