Skip to content

Commit

Permalink
Support for drop collation (DNET-613).
Browse files Browse the repository at this point in the history
  • Loading branch information
cincuranet committed Jun 24, 2015
1 parent a9daf20 commit 3985708
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Expand Up @@ -298,6 +298,7 @@ public void Execute(bool autoCommit = true)
this.OnCommandExecuted(sqlStatement, null, -1);
break;

case SqlStatementType.DropCollation:
case SqlStatementType.DropDomain:
case SqlStatementType.DropException:
case SqlStatementType.DropExternalFunction:
Expand Down Expand Up @@ -939,6 +940,10 @@ public static SqlStatementType GetStatementType(string sqlStatement)
break;

case 'R':
if (StringParser.StartsWith(sqlStatement, "DROP COLLATION", true))
{
return SqlStatementType.DropCollation;
}
if (StringParser.StartsWith(sqlStatement, "DROP DATABASE", true))
{
return SqlStatementType.DropDatabase;
Expand Down
Expand Up @@ -200,6 +200,11 @@ public enum SqlStatementType
/// </summary>
Disconnect,

/// <summary>
/// Represents the SQL statement: <b>DROP COLLATION</b>
/// </summary>
DropCollation,

/// <summary>
/// Represents the SQL statement: <b>DROP DATABASE</b>
/// </summary>
Expand Down

0 comments on commit 3985708

Please sign in to comment.