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);
for (int i =0 ; i< arrayColumns.size() ; ++i) {
// replace
String k = "$" + i;
int dataIndex = this.meta.get(arrayColumns.get(i));
String replaceString = data.get(dataIndex);
metric = metric.replace(k,"'" + replaceString + "'");
if (arrayColumns != null) {
for (int i =0 ; i< arrayColumns.size() ; ++i) {
// replace
String k = "$" + i;
int dataIndex = this.meta.get(arrayColumns.get(i));
String replaceString = data.get(dataIndex);
metric = metric.replace(k,"'" + replaceString + "'");
}
}
return metric;
}