Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

多个字段排序的问题 order by DbModelSelector类导致应用报错 #690

Closed
huangxunlei opened this issue Mar 23, 2020 · 1 comment

Comments

@huangxunlei
Copy link

huangxunlei commented Mar 23, 2020

DbModelSelector类中

  for (int i = 0; i < orderByList.size(); i++) {
        result.append(" ORDER BY ").append(orderByList.get(i).toString()).append(',');
     }

sqlite 出现多个order by 会报错 在Selector 中的源码为

    result.append(" ORDER BY ");
    for (OrderBy orderBy : orderByList) {
           result.append(orderBy.toString()).append(',');
     }

修改为Selector的代码 即可

@wyouflf
Copy link
Owner

wyouflf commented Mar 29, 2020

谢谢反馈, 今天会提交修复.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants