]> source.dussan.org Git - jackcess.git/commitdiff
return all values in map so that default values, calc values, etc get returned to...
authorJames Ahlborn <jtahlborn@yahoo.com>
Wed, 6 Jun 2018 03:09:13 +0000 (03:09 +0000)
committerJames Ahlborn <jtahlborn@yahoo.com>
Wed, 6 Jun 2018 03:09:13 +0000 (03:09 +0000)
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/branches/exprs@1165 f203690c-595d-4dc9-a70b-905162fa7fd2

src/main/java/com/healthmarketscience/jackcess/impl/TableImpl.java

index c084ae81b4f4f16f506384af3c6080194275daff..15a0c8c76eca87f813a4662715558ee817f31d80 100644 (file)
@@ -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;
   }