set value as NULL if getString returns null an wasNull fails

This commit is contained in:
Paul Trowbridge 2022-10-20 22:03:54 -04:00
parent 4b52dac2e9
commit 3c0f249492

View File

@ -193,6 +193,10 @@ public class jrunner {
nr = ""; nr = "";
for (int i = 1; i <= cols; i++){ for (int i = 1; i <= cols; i++){
nc = rs.getString(i); nc = rs.getString(i);
if (dtn[i] == "DATE" && nc == "null") {
nc = "NULL";
}
else {
if (rs.wasNull()) { if (rs.wasNull()) {
nc = "NULL"; nc = "NULL";
} else { } else {
@ -233,6 +237,7 @@ public class jrunner {
break; break;
} }
} }
}
if (i != 1){ if (i != 1){
nr = nr + ","; nr = nr + ",";
} }