mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
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:
committed by
Rob Bygrave
parent
e08333ef26
commit
e734c0010c
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user