Compare commits

...

2 Commits

Author SHA1 Message Date
Paul Trowbridge 91405f2dfe v0.31 2022-10-20 22:05:39 -04:00
Paul Trowbridge 3c0f249492 set value as NULL if getString returns null an wasNull fails 2022-10-20 22:03:54 -04:00
1 changed files with 42 additions and 37 deletions

View File

@ -35,7 +35,7 @@ public class jrunner {
Integer cols = null;
String[] dtn = null;
msg = "jrunner version 0.30";
msg = "jrunner version 0.31";
msg = msg + nl + "-scu source jdbc url";
msg = msg + nl + "-scn source username";
msg = msg + nl + "-scp source passowrd";
@ -193,6 +193,10 @@ public class jrunner {
nr = "";
for (int i = 1; i <= cols; i++){
nc = rs.getString(i);
if (dtn[i] == "DATE" && nc == "null") {
nc = "NULL";
}
else {
if (rs.wasNull()) {
nc = "NULL";
} else {
@ -233,6 +237,7 @@ public class jrunner {
break;
}
}
}
if (i != 1){
nr = nr + ",";
}