From e42f7fcc6ec295830ffcb70ac48e5bee2fa3b365 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Thu, 23 Aug 2018 16:52:30 -0400 Subject: [PATCH] trim end only --- runner.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/runner.cs b/runner.cs index 0521086..229ca6a 100644 --- a/runner.cs +++ b/runner.cs @@ -138,21 +138,19 @@ namespace test switch (dtn[i]){ case "VARCHAR": if (trim) { - nc = "'" + getv[i].ToString().Replace("'","''").Trim() + "'"; + nc = "'" + getv[i].ToString().Replace("'","''").TrimEnd() + "'"; } else { nc = "'" + getv[i].ToString().Replace("'","''") + "'"; } - nc = "'" + getv[i].ToString().Replace("'","''") + "'"; break; case "CHAR": if (trim) { - nc = "'" + getv[i].ToString().Replace("'","''").Trim() + "'"; + nc = "'" + getv[i].ToString().Replace("'","''").TrimEnd() + "'"; } else { nc = "'" + getv[i].ToString().Replace("'","''") + "'"; } - nc = "'" + getv[i].ToString().Replace("'","''") + "'"; break; case "DATE": if (getv[i].ToString() == "1/1/0001 12:00:00 AM" || getv[i].ToString() == "") {