summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2020-03-27 14:43:05 -0600
committerJeff Sharkey <jsharkey@android.com>2020-03-27 20:47:18 -0600
commit62dd7c25ac5be2eff96289ce9da9a4d183074009 (patch)
treec7d74579301556bcfaf74f7356623e4319f137e2 /tools/aapt2/java/JavaClassGenerator.cpp
parentcc45f332a42d4d62b321a28363b28273361200f7 (diff)
Add ability to execute per-connection SQL.
Developers have been able to register custom collators using syntax like "SELECT icu_load_collation()", but collators are registered per database connection. Since we don't expose any details APIs for interacting with connection pools directly, developers can end up with flaky behavior as their queries rotate through the pool of connections, as only a subset of connections will have their collation registered. This solve this, we add a new execPerConnectionSQL() method to ensure that a given statement is executed on all current and future database connections. Bug: 152005629 Test: atest CtsDatabaseTestCases:android.database.sqlite.cts.SQLiteDatabaseTest Change-Id: I459fb7b18660d2a04eec92d1e9cc410d769e361d
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions