summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/data/test.mdbbin3035136 -> 3043328 bytes
-rw-r--r--test/src/java/com/healthmarketscience/jackcess/IndexTest.java14
2 files changed, 14 insertions, 0 deletions
diff --git a/test/data/test.mdb b/test/data/test.mdb
index 23124d6..b9d004a 100644
--- a/test/data/test.mdb
+++ b/test/data/test.mdb
Binary files differ
diff --git a/test/src/java/com/healthmarketscience/jackcess/IndexTest.java b/test/src/java/com/healthmarketscience/jackcess/IndexTest.java
index d746844..4e547dd 100644
--- a/test/src/java/com/healthmarketscience/jackcess/IndexTest.java
+++ b/test/src/java/com/healthmarketscience/jackcess/IndexTest.java
@@ -363,7 +363,21 @@ public class IndexTest extends TestCase {
db.close();
}
+
+ public void testReplId() throws Exception
+ {
+ Database db = openCopy(new File("test/data/test.mdb"));
+ Table table = db.getTable("Table4");
+
+ for(int i = 0; i< 20; ++i) {
+ table.addRow("row" + i, Column.AUTO_NUMBER);
+ }
+
+ assertEquals(20, table.getRowCount());
+ db.close();
+ }
+
private void checkIndexColumns(Table table, String... idxInfo)
throws Exception
{