summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Lee Shombert <shombert@google.com> 2024-05-28 07:49:41 -0700
committer Lee Shombert <shombert@google.com> 2024-05-28 14:16:30 -0700
commit19cf445a88a6af1c565c3f45a00eb0d8097007bc (patch)
tree933419bbfffe11c7fab8c902b7b08dc7cf7ce49c /libs/androidfw/StringPool.cpp
parent8ed849476594c74fad8c996f057faa63d6d33096 (diff)
Distinguish null blobs in SQLiteRawStatement
The sqlite value API sqlite3_column_blob() returns a null if the column type is SQLITE_NULL or a zero-length SQLITE_BLOB. SQLiteRawStatement.getColumnBlob() now distinguishes between these two cases: if the column type is SQLITE_NULL, return null, otherwise return a byte array of length zero. New unit tests have been added. Unit tests have also been added for SQLiteRawStatement.getColumnText()'s handling of empty strings and null values. Test: atest * FrameworksCoreTests:android.database * CtsDatabaseTestCases Flag: EXEMPT bugfix Bug: 342687891 Change-Id: Ia041eeb761267de0a4b59af3ddcba6433b231bbb
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions