Skip to content

Make lastInsertRowid consistent with other SQLite wrappers #532

@jberkel

Description

@jberkel

See #438

  1. sqlite3_last_insert_rowid doesn't get reset to 0 on errors, so it's unsuitable for error handling!
  2. 0 and negative values are valid rowids.

I believe the correct implementation is simply returning sqlite3_last_insert_rowid() as FMDB does (and all other SQLite3 wrappers).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions