aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main/java/com/healthmarketscience/jackcess/impl/TableImpl.java12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/main/java/com/healthmarketscience/jackcess/impl/TableImpl.java b/src/main/java/com/healthmarketscience/jackcess/impl/TableImpl.java
index c084ae8..15a0c8c 100644
--- a/src/main/java/com/healthmarketscience/jackcess/impl/TableImpl.java
+++ b/src/main/java/com/healthmarketscience/jackcess/impl/TableImpl.java
@@ -2148,7 +2148,7 @@ public class TableImpl implements Table, PropertyMaps.Owner
addRow(rowValues);
- returnRowValues(row, rowValues, _autoNumColumns);
+ returnRowValues(row, rowValues, _columns);
return row;
}
@@ -2168,12 +2168,10 @@ public class TableImpl implements Table, PropertyMaps.Owner
addRows(rowValuesList);
- if(!_autoNumColumns.isEmpty()) {
- for(int i = 0; i < rowValuesList.size(); ++i) {
- Map<String,Object> row = rows.get(i);
- Object[] rowValues = rowValuesList.get(i);
- returnRowValues(row, rowValues, _autoNumColumns);
- }
+ for(int i = 0; i < rowValuesList.size(); ++i) {
+ Map<String,Object> row = rows.get(i);
+ Object[] rowValues = rowValuesList.get(i);
+ returnRowValues(row, rowValues, _columns);
}
return rows;
}