commit | d1ce9698ff00767b81800792b917e56f77da5998 | [log] [tgz] |
---|---|---|
author | Zim <zezeozue@google.com> | Thu Nov 04 11:52:33 2021 +0000 |
committer | Zim <zezeozue@google.com> | Thu Nov 04 11:52:33 2021 +0000 |
tree | f0e497ad2465c6f229eaede181567f62c3d409e6 | |
parent | 88a7e5bb5887d52e153a8d1db48c8eaa429c8409 [diff] |
Convert SQLite IIF function to CASE/WHEN IIF was added in SQLite version 3.32.0 which is available on Android S devices, however Android R devices only support SQLite version 3.28 As per the documentation: The iif(X,Y,Z) function is logically equivalent to and generates the same bytecode as the CASE expression "CASE WHEN X THEN Y ELSE Z END" Test: atest PickerDbFacadeTest Bug: 203524245 Change-Id: Ia0615a2b9c19edf021ef987943af4af9482a144e