If the map already contains the column name, add schema and table names before the key to make it unique again (#1800)

This commit is contained in:
Manuel Danisch
2019-08-25 11:09:32 +12:00
committed by Rob Bygrave
parent e08333ef26
commit e734c0010c
2 changed files with 166 additions and 0 deletions
@@ -45,6 +45,9 @@ public class DRawSqlService implements SpiRawSqlService {
if (name == null) {
name = meta.getColumnName(i);
}
if (ret.containsKey(name)) {
name = meta.getSchemaName(i) + "." + meta.getTableName(i) + "." + name;
}
ret.put(name, resultSet.getObject(i));
}
return ret;