FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Grammar parser doesn't read foreign key column constraints · Issue #227 · sqlitebrowser/sqlitebrowser · GitHub

Grammar parser doesn't read foreign key column constraints #227

Description

CREATE TABLE test(
  id int,
  parent_id int REFERENCES test(id)
);

is equivalent to

CREATE TABLE test(
  id    int,
  parent_id int,
  FOREIGN KEY(parent_id) REFERENCES test (id)
);

However, only the latter is fully read by our grammar parser. If you use the first version, DB4S will work but silently drop the foreign key clause when you edit the table definition.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugConfirmed bugs or reports that are very likely to be bugs.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL