set value as NULL if getString returns null an wasNull fails
This commit is contained in:
parent
4b52dac2e9
commit
3c0f249492
@ -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 + ",";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user