Skip to content

Commit 0a09198

Browse files
committed
#4 Data type NTEXT is supported now
1 parent 0ba17b8 commit 0a09198

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@
3131
// You can specify all the values or you can default the Build and Revision Numbers
3232
// by using the '*' as shown below:
3333
// [assembly: AssemblyVersion("1.0.*")]
34-
[assembly: AssemblyVersion("2.0.1.0")]
35-
[assembly: AssemblyFileVersion("2.0.1.0")]
34+
[assembly: AssemblyVersion("2.1.0.0")]
35+
[assembly: AssemblyFileVersion("2.1.0.0")]

ScriptWriter.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,13 +123,16 @@ private StringBuilder SerializeRowValues(DataRow row, DataTable colInfoTable, st
123123
v = "'" + row[col].ToString().Replace("'", "''") + "'";
124124
break;
125125
case "char":
126-
case "nchar":
127126
case "varchar":
128-
case "nvarchar":
129-
case "sysname":
130127
case "text":
131128
v = "'" + row[col].ToString().Replace("'", "''") + "'";
132129
break;
130+
case "nchar":
131+
case "nvarchar":
132+
case "ntext":
133+
case "sysname":
134+
v = "N'" + row[col].ToString().Replace("'", "''") + "'";
135+
break;
133136
case "datetime":
134137
v = String.Format("'{0:yyyyMMdd HH:mm:ss}'", row[col]); //Lack of accuracy!
135138
break;

0 commit comments

Comments
 (0)