extract timestamp as datetime

This commit is contained in:
Paul Trowbridge 2018-09-17 09:41:52 -04:00
parent 168d4b27b5
commit fd27030a44

View File

@ -23,7 +23,7 @@ namespace test
string nl = Environment.NewLine; string nl = Environment.NewLine;
string msg = "Help:"; string msg = "Help:";
msg = msg + nl + "version 0.19"; msg = msg + nl + "version 0.20";
msg = msg + nl + "-scs source connection string"; msg = msg + nl + "-scs source connection string";
msg = msg + nl + "-dcs destination connection string"; msg = msg + nl + "-dcs destination connection string";
msg = msg + nl + "-sq path to source query"; msg = msg + nl + "-sq path to source query";
@ -175,7 +175,7 @@ namespace test
nc = "'" + ibmdr.GetValue(i).ToString() + "'"; nc = "'" + ibmdr.GetValue(i).ToString() + "'";
break; break;
case "TIMESTAMP": case "TIMESTAMP":
nc = "'" + ibmdr.GetValue(i).ToString() + "'"; nc = "'" + ibmdr.GetDateTime(i).ToString() + "'";
break; break;
case "BIGINT": case "BIGINT":
nc = ibmdr.GetInt64(i).ToString(); nc = ibmdr.GetInt64(i).ToString();