Skip to content
This repository was archived by the owner on Oct 14, 2022. It is now read-only.

Commit 169cb3d

Browse files
angusholdernpurushe
authored andcommitted
Resolve caching of SELECT statements starting with WITH (requery#120)
1 parent e3b8b67 commit 169cb3d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sqlite-android/src/main/java/io/requery/android/database/sqlite/SQLiteStatementType.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ public static int getSqlStatementType(String sql) {
6666
}
6767
String prefixSql = sql.substring(0, 3);
6868

69-
if (prefixSql.equalsIgnoreCase("SEL")) {
69+
if (prefixSql.equalsIgnoreCase("SEL")
70+
|| prefixSql.equalsIgnoreCase("WIT")) {
7071
return STATEMENT_SELECT;
7172
}
7273
if (prefixSql.equalsIgnoreCase("INS")

0 commit comments

Comments
 (0)