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

bug:SQLUpdateStatement缺少对with语句的访问 #4339

Closed
1123183721 opened this issue Jun 28, 2021 · 0 comments
Closed

bug:SQLUpdateStatement缺少对with语句的访问 #4339

1123183721 opened this issue Jun 28, 2021 · 0 comments
Milestone

Comments

@1123183721
Copy link
Contributor

acceptChild方法访问子节点时漏了with节点

protected void acceptChild(SQLASTVisitor visitor)
{
if (with != null) {
with.accept(visitor);
}

    if (tableSource != null) {
        tableSource.accept(visitor);
    }

    if (from != null) {
        from.accept(visitor);
    }

    for (int i = 0; i < items.size(); i++) {
        SQLUpdateSetItem item = items.get(i);
        if (item != null) {
            item.accept(visitor);
        }
    }

    if (where != null) {
        where.accept(visitor);
    }

    if (orderBy != null) {
        orderBy.accept(visitor);
    }
}
wenshao added a commit that referenced this issue Jul 2, 2021
修复#4339:SQLUpdateStatement缺少对with语句的访问支持
@wenshao wenshao added this to the 1.2.7 milestone Jul 3, 2021
wenshao added a commit that referenced this issue Sep 20, 2021
修复#4339:SQLUpdateStatement缺少对with语句的访问支持
@wenshao wenshao modified the milestones: 1.2.7, 1.2.8 Oct 3, 2021
@wenshao wenshao closed this as completed Oct 3, 2021
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