diff options
author | 2024-01-08 17:44:17 -0800 | |
---|---|---|
committer | 2024-01-08 17:44:17 -0800 | |
commit | fef32c39697c31d5730e169258c80dd1aa1ade91 (patch) | |
tree | 157ccde190e2361f4ec452a701e67e01176c221e /libs/androidfw/BackupHelpers.cpp | |
parent | 046a0f252c954d398c974bd7f1f8b2b21b7ec9b8 (diff) |
Read-ony transactions may modify TEMP tables
Temporary tables are private to a connection and modifying a temporary
table does not lock the database. This change extends the check on
the statement characteristics: a statement is considered read-only if
it does not modify any table other than temporary tables.
The new logic to categorize a statement only runs if a prepared
statement is not read-only, in a read-only transaction. There is no
performance penalty for truly read-only statements or for read/write
transactions.
Bug: 317993835
Test: atest
* FrameworksCoreTests:android.database.sqlite
Change-Id: Ifd663dec8680d4c3c6eb9ec61f49b51eb2f11fad
Diffstat (limited to 'libs/androidfw/BackupHelpers.cpp')
0 files changed, 0 insertions, 0 deletions