diff options
author | James Ahlborn <jtahlborn@yahoo.com> | 2011-10-29 18:44:10 +0000 |
---|---|---|
committer | James Ahlborn <jtahlborn@yahoo.com> | 2011-10-29 18:44:10 +0000 |
commit | 6986ee24dcf41dd34a6b8e158f8f48afd835c5e7 (patch) | |
tree | 45fea6def175f6509aa4b26ed6926a48c19072a0 /src | |
parent | 5f22dff2bb6577682c4f6e7db0b386183dfbe94f (diff) | |
download | jackcess-6986ee24dcf41dd34a6b8e158f8f48afd835c5e7.tar.gz jackcess-6986ee24dcf41dd34a6b8e158f8f48afd835c5e7.zip |
Fix problem with creating tables with indexes where ms access could not open the created table
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@583 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'src')
-rw-r--r-- | src/changes/changes.xml | 4 | ||||
-rw-r--r-- | src/java/com/healthmarketscience/jackcess/Table.java | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 25bc6bd..62d6006 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -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"> diff --git a/src/java/com/healthmarketscience/jackcess/Table.java b/src/java/com/healthmarketscience/jackcess/Table.java index 0cf32ea..738900c 100644 --- a/src/java/com/healthmarketscience/jackcess/Table.java +++ b/src/java/com/healthmarketscience/jackcess/Table.java @@ -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; |