SQLite should use cursor.lastrowid for integer primary key
Bug #253922 reported by
Tom Lynn
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Storm |
New
|
Undecided
|
Unassigned | ||
Zeitgeist Framework |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Every SQLite insert statement is followed by a "select <primary-key> where oid=<cursor.
To post a comment you must log in.
What is needed to move this bug forward are:
1. a reliable way of determining which column represents the OID for the row. n.execute( ) to fill in the primary_vars on the Update() statement object, similar to what PostgresConnection and MySQLConnection do.
2. Alter SQLiteConnectio
If (1) isn't possible, you could probably use MySQLConnection's algorithm (which is the best that you can do with MySQL).