Skip to content

Improve SQLite multi-threaded use#91

Merged
aleks-f merged 1 commit intopocoproject:developfrom
RangelReale:sqlitedual
Feb 18, 2013
Merged

Improve SQLite multi-threaded use#91
aleks-f merged 1 commit intopocoproject:developfrom
RangelReale:sqlitedual

Conversation

@RangelReale
Copy link
Copy Markdown
Contributor

  • Use sqlite3_stmt_readonly to determine if sqlite3_changes should be called
  • Remove sys.dual dependency, improving multi-threaded applications

sqlite3_changes shouldn't be called for select statements. If a statement is readonly, by definition it should't make any changes. Using this logic, the sys.dual hack don't need to be used, which was giving problems in multi-threaded applications.

All tests passed with this change.

… called

* Remove sys.dual dependency, improving multi-threaded applications
aleks-f added a commit that referenced this pull request Feb 18, 2013
Improve SQLite multi-threaded use
@aleks-f aleks-f merged commit 11cddbf into pocoproject:develop Feb 18, 2013
@ghost ghost assigned aleks-f Feb 18, 2013
@RangelReale RangelReale deleted the sqlitedual branch June 26, 2015 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants