Skip to content

[Bug]: DB Browser is ignoring the sqlite_sequence #3026

@bwminick

Description

@bwminick

It appears that DB Browser is ignoring the sqlite_sequence for a table when creating new records.

Here's how to replicate it:

  • Create a new database.

  • Create a new Employees table with the following fields:

    • id (primary key, autoincrement, unique not null)
    • firstName (text)
    • lastName (text)

createTable

  • Go to the new sqlite_sequence table.
  • Add a new row with the values: Employees (for the name field) and 1000 (for the seq field).
  • Write Changes
  • Go to the Employees table
  • Add a new row (via the "Insert a new record in the current table" toolbar button with values of your choosing.
  • Notice that the ID value is 1, instead of 1001.
  • Now, add a second row (this time via sql commands) instead.

sql_command

You'll notice that the executed sql is following the sqlite_sequence table.

result

Expected Results:
The first record's ID should be 1001. The second record's ID should be 1002. However, the "Insert a new record in the current table" toolbar button is ignoring the sqlite_sequence table.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions