result set

This commit is contained in:
jackdaw@loafle.com 2017-04-25 18:38:25 +09:00
parent 64a106489c
commit aca84b3371

View File

@ -89,14 +89,15 @@ public class OFResultSetRow extends OFResultSet{
String metric = metrics.get(findIndex); String metric = metrics.get(findIndex);
for (int i =0 ; i< arrayColumns.size() ; ++i) { if (arrayColumns != null) {
// replace for (int i =0 ; i< arrayColumns.size() ; ++i) {
String k = "$" + i; // replace
int dataIndex = this.meta.get(arrayColumns.get(i)); String k = "$" + i;
String replaceString = data.get(dataIndex); int dataIndex = this.meta.get(arrayColumns.get(i));
metric = metric.replace(k,"'" + replaceString + "'"); String replaceString = data.get(dataIndex);
metric = metric.replace(k,"'" + replaceString + "'");
}
} }
return metric; return metric;
} }