-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
browse databugConfirmed bugs or reports that are very likely to be bugs.Confirmed bugs or reports that are very likely to be bugs.response requested
Description
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)
- 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.
You'll notice that the executed sql is following the sqlite_sequence table.
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
browse databugConfirmed bugs or reports that are very likely to be bugs.Confirmed bugs or reports that are very likely to be bugs.response requested