When specify limit clause that has OFFSET keyword on SQLiteQueryBuilder.query, Eclair throws噩梦一般 2.0.1行了 没升级的机子怎么办
InvalidArgumentException(invalid LIMIT clause: 20 OFFSET 0).
Because LIMIT clause is checked with following sLimitPattern.
private static final Pattern sLimitPattern = Pattern.compile("\\s*\\d+\\s*(,\\s*\\d+\\s*)?");
SQLITE3 accepts both comma separated LIMIT clause and OFFSET one.
Cupcake has a bug for LIMIT support.
Donut is OK.
Eclair only accept comma separated LIMIT clause.
2.0 is only used on Droid.
So please fix this on 2.0.1 and replace all 2.0 devices with 2.0.1.
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/86970/viewspace-624038/ ,如需转载,请注明出处,否则将追究法律责任。