mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-10-31 22:18:52 +00:00
[bugfix] add all possible busy result codes to the sqlite errBusy catching check (#2775)
This commit is contained in:
parent
967558947a
commit
0767647056
1 changed files with 3 additions and 1 deletions
|
@ -72,7 +72,9 @@ func processSQLiteError(err error) error {
|
||||||
case sqlite3.SQLITE_CONSTRAINT_UNIQUE,
|
case sqlite3.SQLITE_CONSTRAINT_UNIQUE,
|
||||||
sqlite3.SQLITE_CONSTRAINT_PRIMARYKEY:
|
sqlite3.SQLITE_CONSTRAINT_PRIMARYKEY:
|
||||||
return db.ErrAlreadyExists
|
return db.ErrAlreadyExists
|
||||||
case sqlite3.SQLITE_BUSY:
|
case sqlite3.SQLITE_BUSY,
|
||||||
|
sqlite3.SQLITE_BUSY_SNAPSHOT,
|
||||||
|
sqlite3.SQLITE_BUSY_RECOVERY:
|
||||||
return errBusy
|
return errBusy
|
||||||
case sqlite3.SQLITE_BUSY_TIMEOUT:
|
case sqlite3.SQLITE_BUSY_TIMEOUT:
|
||||||
return db.ErrBusyTimeout
|
return db.ErrBusyTimeout
|
||||||
|
|
Loading…
Reference in a new issue