Skip to content

Corrected Parsing Problem #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/net/efabrika/util/DBTablePrinter.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ open source license and how to use Git and GitHub (https://github.com)
*/
public class DBTablePrinter {

/**
/**
* Default maximum number of rows to query and print.
*/
private static final int DEFAULT_MAX_ROWS = 10;
Expand All @@ -84,7 +84,7 @@ public class DBTablePrinter {

/**
* Column type category for <code>TINYINT</code>, <code>SMALLINT</code>,
* <code>INT</code> and <code>BIGINT</code> columns.
* <code>INT</code> and <code>BIGINT</code> and <code>BIGDECIMAL</code> columns.
*/
public static final int CATEGORY_INTEGER = 2;

Expand Down Expand Up @@ -515,7 +515,6 @@ public static void printResultSet(ResultSet rs, int maxStringColWidth) {
columns and created all Column objects, iterated over the
ResultSet rows, populated the column values and adjusted
the column widths.

We cannot start printing just yet because we have to prepare
a row separator String.
*/
Expand Down Expand Up @@ -649,6 +648,7 @@ private static int whichCategory(int type) {
case Types.TINYINT:
case Types.SMALLINT:
case Types.INTEGER:
case Types.NUMERIC:
return CATEGORY_INTEGER;

case Types.REAL:
Expand Down