summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/iciql/TableDefinition.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/iciql/TableDefinition.java')
-rw-r--r--src/main/java/com/iciql/TableDefinition.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/iciql/TableDefinition.java b/src/main/java/com/iciql/TableDefinition.java
index 8248f18..4fe860d 100644
--- a/src/main/java/com/iciql/TableDefinition.java
+++ b/src/main/java/com/iciql/TableDefinition.java
@@ -1140,7 +1140,7 @@ public class TableDefinition<T> {
* @param rs
* @return
*/
- int[] mapColumns(boolean wildcardSelect, ResultSet rs) {
+ int[] mapColumns(SQLDialect dialect, boolean wildcardSelect, ResultSet rs) {
int[] columns = new int[fields.size()];
for (int i = 0; i < fields.size(); i++) {
try {
@@ -1149,7 +1149,7 @@ public class TableDefinition<T> {
if (wildcardSelect) {
// select *
// create column index by field name
- columnIndex = rs.findColumn(def.columnName);
+ columnIndex = rs.findColumn(dialect.extractColumnName(def.columnName));
} else {
// select alpha, beta, gamma, etc
// explicit select order