From ccb1ca589ae40a2b07884d709cb121826ee4cb27 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Fri, 21 Oct 2022 09:31:14 -0400 Subject: [PATCH] print column names and types --- app/src/main/java/jrunner/jrunner.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/jrunner/jrunner.java b/app/src/main/java/jrunner/jrunner.java index b46fd3c..b028e6a 100644 --- a/app/src/main/java/jrunner/jrunner.java +++ b/app/src/main/java/jrunner/jrunner.java @@ -35,7 +35,7 @@ public class jrunner { Integer cols = null; String[] dtn = null; - msg = "jrunner version 0.31"; + msg = "jrunner version 0.32"; msg = msg + nl + "-scu source jdbc url"; msg = msg + nl + "-scn source username"; msg = msg + nl + "-scp source passowrd"; @@ -179,7 +179,7 @@ public class jrunner { try { for (int i = 1; i <= cols; i++){ dtn[i] = rs.getMetaData().getColumnTypeName(i); - //System.out.println(dtn[i]); + System.out.println(rs.getMetaData().getColumnName(i) + ": " + dtn[i]); } } catch (SQLException e) { e.printStackTrace();