]> source.dussan.org Git - jackcess.git/commitdiff
Fix problem with creating tables with indexes where ms access could not open the...
authorJames Ahlborn <jtahlborn@yahoo.com>
Sat, 29 Oct 2011 18:44:10 +0000 (18:44 +0000)
committerJames Ahlborn <jtahlborn@yahoo.com>
Sat, 29 Oct 2011 18:44:10 +0000 (18:44 +0000)
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@583 f203690c-595d-4dc9-a70b-905162fa7fd2

src/changes/changes.xml
src/java/com/healthmarketscience/jackcess/Table.java

index 25bc6bd6b32defee993d2550c96c3f33e90fa9ef..62d60064ac550ea7e848bed388a0eeb5572b66a9 100644 (file)
@@ -9,6 +9,10 @@
         Add support for reading/writing complex column data (version history,
         attachments, multi-value columns).
       </action>
+      <action dev="jahlborn" type="fix">
+        Fix problem with creating tables with indexes where ms access could
+        not open the created table.
+      </action>
     </release>
     <release version="1.2.5" date="2011-10-19">
       <action dev="jahlborn" type="update">
index 0cf32ea52f2f490ac50fb12834c7e2be58640ffb..738900c4d3eaaf7a358fffc9c8153e73291f5676 100644 (file)
@@ -1170,7 +1170,7 @@ public class Table
     rtn.putShort((short)freeSpace);  //Free space in page
     rtn.putInt(0); //Table definition
     rtn.putInt(0); //Unknown
-    rtn.putShort((short) 2); //Number of records on this page
+    rtn.putShort((short) umapNum); //Number of records on this page
 
     // write two rows of usage map definitions for the table
     int rowStart = findRowEnd(rtn, 0, format) - usageMapRowLength;