This commit is contained in:
地平线
2015-10-30 09:47:10 +08:00
parent f5a152dd50
commit 3109910263

View File

@@ -498,7 +498,12 @@ public final class DataDefaultSource implements DataSource, Nameable {
int i = 0;
for (char ch : sqlchars) {
if (ch == '?') {
sb.append(formatToString(attrs[i++].get(value)));
Object obj = attrs[i++].get(value);
if (obj != null && obj.getClass().isArray()) {
sb.append("'[length=").append(java.lang.reflect.Array.getLength(obj)).append("]'");
} else {
sb.append(formatToString(obj));
}
} else {
sb.append(ch);
}