Opened 8 years ago

Closed 8 years ago

#27096 closed Bug (fixed)

SQLite fails finding a table primary key when it's also a foreign key

Reported by: Claude Paroz Owned by: nobody
Component: Database layer (models, ORM) Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

When the primary key of a table is also a foreign key, the get_primary_key_column introspection function of the SQLite backend cannot detect the primary key (deficient regex).

Change History (3)

comment:1 by Claude Paroz, 8 years ago

Has patch: set

comment:2 by Tim Graham, 8 years ago

Triage Stage: AcceptedReady for checkin

comment:3 by Claude Paroz <claude@…>, 8 years ago

Resolution: fixed
Status: newclosed

In 00bb47b:

Fixed #27096 -- Fixed primary key introspection for sqlite3 backend

Note: See TracTickets for help on using tickets.
Back to Top