trim end only
This commit is contained in:
parent
80cddb08bc
commit
e42f7fcc6e
@ -138,21 +138,19 @@ namespace test
|
|||||||
switch (dtn[i]){
|
switch (dtn[i]){
|
||||||
case "VARCHAR":
|
case "VARCHAR":
|
||||||
if (trim) {
|
if (trim) {
|
||||||
nc = "'" + getv[i].ToString().Replace("'","''").Trim() + "'";
|
nc = "'" + getv[i].ToString().Replace("'","''").TrimEnd() + "'";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
nc = "'" + getv[i].ToString().Replace("'","''") + "'";
|
nc = "'" + getv[i].ToString().Replace("'","''") + "'";
|
||||||
}
|
}
|
||||||
nc = "'" + getv[i].ToString().Replace("'","''") + "'";
|
|
||||||
break;
|
break;
|
||||||
case "CHAR":
|
case "CHAR":
|
||||||
if (trim) {
|
if (trim) {
|
||||||
nc = "'" + getv[i].ToString().Replace("'","''").Trim() + "'";
|
nc = "'" + getv[i].ToString().Replace("'","''").TrimEnd() + "'";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
nc = "'" + getv[i].ToString().Replace("'","''") + "'";
|
nc = "'" + getv[i].ToString().Replace("'","''") + "'";
|
||||||
}
|
}
|
||||||
nc = "'" + getv[i].ToString().Replace("'","''") + "'";
|
|
||||||
break;
|
break;
|
||||||
case "DATE":
|
case "DATE":
|
||||||
if (getv[i].ToString() == "1/1/0001 12:00:00 AM" || getv[i].ToString() == "") {
|
if (getv[i].ToString() == "1/1/0001 12:00:00 AM" || getv[i].ToString() == "") {
|
||||||
|
Loading…
Reference in New Issue
Block a user