-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Fix issue #2080 #2084
Fix issue #2080 #2084
Conversation
+ " <if test=\"sex != null\">\n" | ||
+ " STUDENT.SSEX = #{sex};\n" | ||
+ " </if>\n" | ||
+ " and STUDENT.SNO = SCORE.SNO and HOUSE.HOUSE_MEMBER = STUDENT.SNO\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line is missing in ex
and the indentation of </if>
looks wrong.
There are some logic mistakes, I'm already in process. By the way, the issue#2080 is more complicated than I thought. |
@@ -306,20 +307,24 @@ public Float getFloatAttribute(String name, Float def) { | |||
} | |||
} | |||
|
|||
public List<XNode> getChildren() { | |||
public List<XNode> getChildren(Predicate<Node> predicate) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this change has nothing to do with the issue#2080
- Keeping indentation, but it won't be perfect in multi-line text nodes. - Add a new line after each open/close tag even for a short line like `<id>3</id>`. There aren't many short lines like that in MyBatis mappers. - Use 2 spaces for indentation instead of 4 to save earth. Should fix mybatis#2080 Should close mybatis#2084 mybatis#2552 mybatis#2998
- Keeping indentation, but it won't be perfect in multi-line text nodes. - Add a new line after each open/close tag even for a short line like `<id>3</id>`. There aren't many short lines like that in MyBatis mappers. - Use 2 spaces for indentation instead of 4 to save earth. Should fix mybatis#2080 Should close mybatis#2084 mybatis#2552 mybatis#2998
Closed in favor of #3001 |
Fix issue @harawata TBR