SQLite REFERENCES

Issue #2115 resolved
Former user created an issue

SQLite allows foreign key REFERENCES with an absent column name, to refer to a column of the same name, e.g.

CREATE TABLE a (id INTEGER PRIMARY KEY);
CREATE TABLE b (id INTEGER PRIMARY KEY REFERENCES a);

In this case SQLite returns an empty value for the foreign column name, breaking SQLiteDialect.get_foreign_keys().

0.6.6 Test and patch attached.

Comments (4)

  1. Log in to comment