]> source.dussan.org Git - jackcess.git/commitdiff
tweak column display
authorJames Ahlborn <jtahlborn@yahoo.com>
Fri, 14 Mar 2008 19:17:23 +0000 (19:17 +0000)
committerJames Ahlborn <jtahlborn@yahoo.com>
Fri, 14 Mar 2008 19:17:23 +0000 (19:17 +0000)
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@271 f203690c-595d-4dc9-a70b-905162fa7fd2

src/java/com/healthmarketscience/jackcess/Column.java

index 6f2ac35ad31654542f27c3a96be11cd0876f6050..312c1410f172455c5141ebb986b7cfb719e4e38b 100644 (file)
@@ -1118,7 +1118,12 @@ public class Column implements Comparable<Column> {
     rtn.append("\n\tNumber: " + _columnNumber);
     rtn.append("\n\tLength: " + _columnLength);
     rtn.append("\n\tVariable length: " + _variableLength);
-    rtn.append("\n\tCompressed Unicode: " + _compressedUnicode);
+    if(_variableLength) {
+      rtn.append("\n\tCompressed Unicode: " + _compressedUnicode);
+    }
+    if(_autoNumber) {
+      rtn.append("\n\tNext AutoNumber: " + (_table.getLastAutoNumber() + 1));
+    }
     rtn.append("\n\n");
     return rtn.toString();
   }