Compare commits
No commits in common. "efd922b2e09f6cee34b5b443f41de7244245296f" and "0615163fad64d25e2a2f931eaa1e83e4e0be0944" have entirely different histories.
efd922b2e0
...
0615163fad
@ -35,7 +35,7 @@ public class jrunner {
|
||||
Integer cols = null;
|
||||
String[] dtn = null;
|
||||
|
||||
msg = "jrunner version 0.36";
|
||||
msg = "jrunner version 0.35";
|
||||
msg = msg + nl + "-scu source jdbc url";
|
||||
msg = msg + nl + "-scn source username";
|
||||
msg = msg + nl + "-scp source passowrd";
|
||||
@ -161,7 +161,6 @@ public class jrunner {
|
||||
//----------------------------------------open resultset------------------------------------------------------------
|
||||
try {
|
||||
stmt = scon.createStatement();
|
||||
stmt.setFetchSize(10000);
|
||||
rs = stmt.executeQuery(sq);
|
||||
//while (rs.next()) {
|
||||
// System.out.println(rs.getString("x"));
|
||||
@ -202,32 +201,29 @@ public class jrunner {
|
||||
for (int i = 1; i <= cols; i++){
|
||||
switch (dtn[i]){
|
||||
case "VARCHAR":
|
||||
nc = rs.getString(i);
|
||||
nc = rs.getString(i).replace("'","''");
|
||||
if (rs.wasNull() || nc == null) {
|
||||
nc = "NULL";
|
||||
break;
|
||||
}
|
||||
nc.replace("'","''");
|
||||
if (trim) { nc = nc.trim();}
|
||||
nc = "'" + nc + "'";
|
||||
break;
|
||||
case "CLOB":
|
||||
nc = rs.getString(i);
|
||||
nc = rs.getString(i).replace("'","''");
|
||||
if (rs.wasNull() || nc == null) {
|
||||
nc = "NULL";
|
||||
break;
|
||||
}
|
||||
nc.replace("'","''");
|
||||
if (trim) { nc = nc.trim();}
|
||||
nc = "'" + nc + "'";
|
||||
break;
|
||||
case "CHAR":
|
||||
nc = rs.getString(i);
|
||||
nc = rs.getString(i).replace("'","''");
|
||||
if (rs.wasNull() || nc == null) {
|
||||
nc = "NULL";
|
||||
break;
|
||||
}
|
||||
nc.replace("'","''");
|
||||
if (trim) { nc = nc.trim();}
|
||||
nc = "'" + nc + "'";
|
||||
break;
|
||||
@ -243,21 +239,19 @@ public class jrunner {
|
||||
}
|
||||
break;
|
||||
case "TIME":
|
||||
nc = rs.getString(i);
|
||||
nc = rs.getString(i).replace("'","''");
|
||||
if (rs.wasNull() || nc == null) {
|
||||
nc = "NULL";
|
||||
break;
|
||||
}
|
||||
nc.replace("'","''");
|
||||
nc = "'" + nc + "'";
|
||||
break;
|
||||
case "TIMESTAMP":
|
||||
nc = rs.getString(i);
|
||||
nc = rs.getString(i).replace("'","''");
|
||||
if (rs.wasNull() || nc == null) {
|
||||
nc = "NULL";
|
||||
break;
|
||||
}
|
||||
nc.replace("'","''");
|
||||
nc = "'" + nc + "'";
|
||||
break;
|
||||
case "BIGINT":
|
||||
|
Loading…
Reference in New Issue
Block a user