aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/com/healthmarketscience/jackcess/impl/TableImpl.java
diff options
context:
space:
mode:
authorJames Ahlborn <jtahlborn@yahoo.com>2018-06-06 03:09:13 +0000
committerJames Ahlborn <jtahlborn@yahoo.com>2018-06-06 03:09:13 +0000
commit2faf773bb91bccafcddd67c914bd5b38f5e99162 (patch)
tree616fdbff6664ae16f4fe55976b7162bee2bf86f2 /src/main/java/com/healthmarketscience/jackcess/impl/TableImpl.java
parent0b5f764325222755fc82190b3481a0637d23cbed (diff)
downloadjackcess-2faf773bb91bccafcddd67c914bd5b38f5e99162.tar.gz
jackcess-2faf773bb91bccafcddd67c914bd5b38f5e99162.zip
return all values in map so that default values, calc values, etc get returned to caller
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/branches/exprs@1165 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'src/main/java/com/healthmarketscience/jackcess/impl/TableImpl.java')
-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;
}