Ignore SQLite locked database error |
12/3/2019 3:35:43 AM |
PHPRunner General questions | |
A
alang author
I have a list view of an SQLite database table which a have setup to refresh every 20sec or so. The table has dynamic data which is populated by another process running simultaneously on the same computer and has several tabs that allow a filtered subset of the records - these tabs are configured to show the number of records on the tabs. DB::CurrentConnection()->setSilentMode(true);
|
|
A
|
alang author 12/5/2019 |
I have done some more playing with this and it seems to me at this point that PHPRunner cannot really handle concurrent access to a table which is being written by another process:
|
![]() |
Sergey Kornilov admin 12/5/2019 |
I'm not sure if PHPRunner should be doing anything here. If we issue a simple select query and database is busy and returns an error to PHP application - it should be treated as an error. Probably with deeper digging into the code you can find a way just to ignore this error but it will mislead your users.
DB::CurrentConnection()->setSilentMode(true);
|
A
|
alang author 12/6/2019 |
Thanks Sergey - agreed. |