aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJames Ahlborn <jtahlborn@yahoo.com>2011-10-19 00:37:08 +0000
committerJames Ahlborn <jtahlborn@yahoo.com>2011-10-19 00:37:08 +0000
commit1eda5c96a8305b4109c05aaa8b7330a398e9a548 (patch)
tree882c22f5ad89a9eb30f0a48d984c289cca475758 /src
parent59d17a49c002e61f2709b5a9a8d8886e1fe1f0d6 (diff)
downloadjackcess-1eda5c96a8305b4109c05aaa8b7330a398e9a548.tar.gz
jackcess-1eda5c96a8305b4109c05aaa8b7330a398e9a548.zip
Fix issue with reading Access 97 database with large number of fields
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@575 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'src')
-rw-r--r--src/changes/changes.xml3
-rw-r--r--src/java/com/healthmarketscience/jackcess/Table.java2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 2b86a16..0865037 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -22,6 +22,9 @@
Add Database.getSystemTableNames to enable retrieving the list of
system/hidden tables.
</action>
+ <action dev="jahlborn" type="fix">
+ Fix issue with reading Access 97 database with large number of fields.
+ </action>
</release>
<release version="1.2.4" date="2011-05-14">
<action dev="jahlborn" type="update">
diff --git a/src/java/com/healthmarketscience/jackcess/Table.java b/src/java/com/healthmarketscience/jackcess/Table.java
index f5e07c0..30a48c7 100644
--- a/src/java/com/healthmarketscience/jackcess/Table.java
+++ b/src/java/com/healthmarketscience/jackcess/Table.java
@@ -759,7 +759,7 @@ public class Table
int jumpsUsed = 0;
for(int i = 0; i < numVarCols + 1; i++) {
- if((jumpsUsed < numJumps) &&
+ while((jumpsUsed < numJumps) &&
(i == ByteUtil.getUnsignedByte(
rowBuffer, rowEnd - nullMaskSize-jumpsUsed - 1))) {
jumpsUsed++;