summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Lee Shombert <shombert@google.com> 2023-11-02 14:24:36 +0000
committer Lee Shombert <shombert@google.com> 2023-11-06 23:07:24 +0000
commitbc44c6b05df14911f04f2ce4953c38200c03e5af (patch)
tree771dd1fb1e8dd39f1c4a936c45fadf372ba740df /libs/androidfw/FileStream.cpp
parent5f29420291e1e868e2ad57b4b9bb78eedd423fa1 (diff)
Scan SQL comments when categorizing statements
This modifies the function that guesses at the SQL statement type by having it scan past comments, if any are present. Comments are skipped using regular expressions, but only if the legacy statement guess recognizes that a comment is present. That is, there is no performance penalty for statements that do not have leading comments. A concurrency test has been added to verify that read-only statements with comments are correctly assigned to non-primary database connections and therefore can run in parallel with read/write statements. Test: atest * FrameworksCoreTests:android.database * CtsDatabaseTestCases Bug: 270315305 Change-Id: Idf56f8ad279d54c701c0b53dc14a5879c8594f58
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions