Only output the alias if it is not the same as the default name.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949607 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -46,7 +46,9 @@ public final class FieldDef extends Atom {
|
||||
|
||||
public StringBuilder appendTo(StringBuilder sb) {
|
||||
value.appendTo(sb);
|
||||
sb.append(" AS ").append(alias);
|
||||
if (!equalsHelper(value.getDefaultName(), alias)) {
|
||||
sb.append(" AS ").append(alias);
|
||||
}
|
||||
return sb;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user