From: James Ahlborn Date: Mon, 28 Aug 2006 12:23:59 +0000 (+0000) Subject: added some more debug info X-Git-Tag: rel_1_1_7~25 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d89f63cae748a3e4f51185e392607ecd63c71a15;p=jackcess.git added some more debug info git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@104 f203690c-595d-4dc9-a70b-905162fa7fd2 --- diff --git a/src/java/com/healthmarketscience/jackcess/Table.java b/src/java/com/healthmarketscience/jackcess/Table.java index 70c3ddf..6fe49d0 100644 --- a/src/java/com/healthmarketscience/jackcess/Table.java +++ b/src/java/com/healthmarketscience/jackcess/Table.java @@ -329,15 +329,26 @@ public class Table boolean deletedRow = ((_rowStart & 0x4000) != 0); boolean overflowRow = ((_rowStart & 0x8000) != 0); + if(deletedRow ^ overflowRow) { + if(LOG.isDebugEnabled()) { + LOG.debug("Row flags: deletedRow " + deletedRow + ", overflowRow " + + overflowRow); + } + } + _rowStart = (short)(_rowStart & OFFSET_MASK); if (deletedRow) { // Deleted row. Skip. + if(LOG.isDebugEnabled()) { + LOG.debug("Skipping deleted row"); + } _lastRowStart = _rowStart; return positionAtNextRow(); } else if (overflowRow) { // Overflow page. // FIXME - Currently skipping this. Need to figure out how to read it. + LOG.warn("Skipping row with overflow flag"); // _buffer.position(_rowStart); // int overflow = _buffer.getInt(); _lastRowStart = _rowStart;