TDI-38803:StringHandling.LPAD(first_string, length) return wrong value (#1031)

This commit is contained in:
pyzhou
2017-05-19 10:58:47 +08:00
committed by wang wei
parent 4f9dd87007
commit a18357f27d

View File

@@ -509,10 +509,11 @@ public class StringHandling {
}
if (isVacant(second_string)) {
StringBuilder result = new StringBuilder(first_string);
StringBuilder result = new StringBuilder();
for (int i = OriginLength; i < length; i++) {
result.append(" ");
}
result.append(first_string);
return result.toString();
} else {
StringBuilder result = new StringBuilder(second_string);