#1631 - Change logging for SqlUpdate ... such that it is more consistent with other SQL logging wrt JDBC batch

This commit is contained in:
rob bygrave committed 2019-02-07 17:20:49 +13:00
1 parent 0c03a8b925
commit 9e1d7ab722
20 files changed
+192 -109

No files matched your search

@@ -15,14 +15,16 @@ public class Str {
// determine a decent buffer size
int len = 16 + s0.length() + s1.length();
for (String arg1 : args) {
len += arg1.length();
len += (arg1 == null) ? 0 : arg1.length();
}
// append all the strings into the buffer
StringBuilder sb = new StringBuilder(len);
sb.append(s0).append(s1);
for (String arg : args) {
sb.append(arg);
if (arg != null) {
sb.append(arg);
}
}
return sb.toString();
}