Compare commits

..

No commits in common. "91405f2dfeaacc08fa1b91a6827b9b1793cc9f41" and "4b52dac2e9c5c487f539a9d283aac29ae1e7ac56" have entirely different histories.

View File

@ -35,7 +35,7 @@ public class jrunner {
Integer cols = null; Integer cols = null;
String[] dtn = null; String[] dtn = null;
msg = "jrunner version 0.31"; msg = "jrunner version 0.30";
msg = msg + nl + "-scu source jdbc url"; msg = msg + nl + "-scu source jdbc url";
msg = msg + nl + "-scn source username"; msg = msg + nl + "-scn source username";
msg = msg + nl + "-scp source passowrd"; msg = msg + nl + "-scp source passowrd";
@ -193,49 +193,44 @@ 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") { if (rs.wasNull()) {
nc = "NULL"; nc = "NULL";
} } else {
else { switch (dtn[i]){
if (rs.wasNull()) { case "VARCHAR":
nc = "NULL"; nc = rs.getString(i).replace("'","''");
} else { if (trim) { nc = nc.trim();}
switch (dtn[i]){ nc = "'" + nc + "'";
case "VARCHAR": break;
nc = rs.getString(i).replace("'","''"); case "CLOB":
if (trim) { nc = nc.trim();} nc = rs.getString(i).replace("'","''");
nc = "'" + nc + "'"; if (trim) { nc = nc.trim();}
break; nc = "'" + nc + "'";
case "CLOB": break;
nc = rs.getString(i).replace("'","''"); case "CHAR":
if (trim) { nc = nc.trim();} nc = rs.getString(i).replace("'","''");
nc = "'" + nc + "'"; if (trim) { nc = nc.trim();}
break; nc = "'" + nc + "'";
case "CHAR": break;
nc = rs.getString(i).replace("'","''"); case "DATE":
if (trim) { nc = nc.trim();} nc = "'" + rs.getString(i) + "'";
nc = "'" + nc + "'"; if (nc == "'1/1/0001 12:00:00 AM'") {
break; nc = "NULL";
case "DATE": }
nc = "'" + rs.getString(i) + "'"; break;
if (nc == "'1/1/0001 12:00:00 AM'") { case "TIME":
nc = "NULL"; nc = "'" + rs.getString(i).replace("'","''") + "'";
} break;
break; case "BIGINT":
case "TIME": nc = rs.getString(i);
nc = "'" + rs.getString(i).replace("'","''") + "'"; default:
break; if (rs.getString(i) != "") {
case "BIGINT":
nc = rs.getString(i); nc = rs.getString(i);
default: }
if (rs.getString(i) != "") { else {
nc = rs.getString(i); nc = "NULL";
} }
else { break;
nc = "NULL";
}
break;
}
} }
} }
if (i != 1){ if (i != 1){