ITPub博客

首页 > Linux操作系统 > Linux操作系统 > android sqlite SQL Limit Offset 支持

android sqlite SQL Limit Offset 支持

原创 Linux操作系统 作者:v_gyc 时间:2009-12-31 09:19:54 0 删除 编辑


http://code.google.com/p/android/issues/detail?id=5318

When specify limit clause that has OFFSET keyword on SQLiteQueryBuilder.query, Eclair throws 
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.
噩梦一般  2.0.1行了 没升级的机子怎么办

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/86970/viewspace-624038/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2008-08-02

  • 博文量
    10
  • 访问量
    37766