Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit bc44c6b0 authored by Lee Shombert's avatar Lee Shombert
Browse files

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
parent 5f294202
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment