diff options
-rw-r--r-- | test/data/test.mdb | bin | 3035136 -> 3043328 bytes | |||
-rw-r--r-- | test/src/java/com/healthmarketscience/jackcess/IndexTest.java | 14 |
2 files changed, 14 insertions, 0 deletions
diff --git a/test/data/test.mdb b/test/data/test.mdb Binary files differindex 23124d6..b9d004a 100644 --- a/test/data/test.mdb +++ b/test/data/test.mdb 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 { |