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

SQL can`t use LIMIT AND OFFSET #1518

Closed
visonforcoding opened this issue Apr 13, 2019 · 1 comment · Fixed by #1521
Closed

SQL can`t use LIMIT AND OFFSET #1518

visonforcoding opened this issue Apr 13, 2019 · 1 comment · Fixed by #1521

Comments

@visonforcoding
Copy link

    public String selectAdminLike(Admin admin) {
        return new SQL() {{
            SELECT("A.name,A.email,A.id");
            FROM("ADMIN A");
            if (admin.getName() != null) {
                WHERE("A.name = '" + admin.getName() + "'");
            }
            if (admin.getEmail() != null) {
                WHERE("A.email = " + admin.getEmail());
            }
        }}.toString();
    }

can`t use limit and offset

kazuki43zoo added a commit to kazuki43zoo/mybatis-3 that referenced this issue Apr 14, 2019
@kazuki43zoo kazuki43zoo self-assigned this Apr 14, 2019
@kazuki43zoo kazuki43zoo added the enhancement Improve a feature or add a new feature label Apr 14, 2019
@kazuki43zoo kazuki43zoo removed their assignment Apr 14, 2019
@kazuki43zoo kazuki43zoo removed the enhancement Improve a feature or add a new feature label Apr 14, 2019
kazuki43zoo added a commit to kazuki43zoo/mybatis-3 that referenced this issue Jun 16, 2019
kazuki43zoo added a commit that referenced this issue Jun 16, 2019
Support LIMIT and OFFSET on SQL class
@kazuki43zoo
Copy link
Member

@visonforcoding Thanks for your reporting!

I've fixed this issue via #1521. Please try on 3.5.2-SNAPSHOT. 3.5.2-SNAPSHOT has been deployed already on OSS NEXUS.

pulllock pushed a commit to pulllock/mybatis-3 that referenced this issue Oct 19, 2023
pulllock pushed a commit to pulllock/mybatis-3 that referenced this issue Oct 19, 2023
pulllock pushed a commit to pulllock/mybatis-3 that referenced this issue Oct 19, 2023
Support LIMIT and OFFSET on SQL class
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

Successfully merging a pull request may close this issue.

2 participants