From e5c95546010d95ea347458359109c17af29f9cbb Mon Sep 17 00:00:00 2001
From: Sushil Tiwari <9711723950sushil@gmail.com>
Date: Tue, 11 Sep 2018 11:15:00 +0530
Subject: [PATCH] Update DBTablePrinter.java
---
src/net/efabrika/util/DBTablePrinter.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/net/efabrika/util/DBTablePrinter.java b/src/net/efabrika/util/DBTablePrinter.java
index b2204f7..200b95f 100644
--- a/src/net/efabrika/util/DBTablePrinter.java
+++ b/src/net/efabrika/util/DBTablePrinter.java
@@ -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;
@@ -84,7 +84,7 @@ public class DBTablePrinter {
/**
* Column type category for TINYINT, SMALLINT,
- * INT and BIGINT columns.
+ * INT and BIGINT and BIGDECIMAL columns.
*/
public static final int CATEGORY_INTEGER = 2;
@@ -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.
*/
@@ -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: