mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-17 22:56:28 +00:00
#1631 - Change logging for SqlUpdate ... such that it is more consistent with other SQL logging wrt JDBC batch
This commit is contained in:
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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user