]> source.dussan.org Git - jackcess.git/commitdiff
added some more debug info
authorJames Ahlborn <jtahlborn@yahoo.com>
Mon, 28 Aug 2006 12:23:59 +0000 (12:23 +0000)
committerJames Ahlborn <jtahlborn@yahoo.com>
Mon, 28 Aug 2006 12:23:59 +0000 (12:23 +0000)
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@104 f203690c-595d-4dc9-a70b-905162fa7fd2

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

index 70c3ddfbb5d8d0347b3535c7ce21aa2cf083f873..6fe49d0d9420819d5c25d3681dd015f240960dc6 100644 (file)
@@ -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;