Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

Commit

Permalink
mysql uses the charactermaximumlength on stuff like text where it is …
Browse files Browse the repository at this point in the history
…not explicitly set, so account for that in the mysql->mssql datacopy
  • Loading branch information
zerobfd authored and Clayton Pence committed Feb 3, 2014
1 parent e0faefc commit 0bee76f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TeslaSQL/DataCopy/MySQLToMSSQLDataCopy.cs
Expand Up @@ -100,7 +100,7 @@ public void CopyTableDefinition(string sourceDB, string sourceTableName, string
case "text":
case "ntext":
script.Append('(');
script.Append(column.dataType.CharacterMaximumLength != null ? column.dataType.CharacterMaximumLength.ToString() : "MAX");
script.Append((column.dataType.CharacterMaximumLength != null && column.dataType.CharacterMaximumLength < 8000) ? column.dataType.CharacterMaximumLength.ToString() : "MAX");
script.Append(')');
break;
case "decimal":
Expand Down

0 comments on commit 0bee76f

Please sign in to comment.