Skip to content

Commit

Permalink
DNET-347 : FbBatchExecution: Cannot determine SQL statement for ALTER…
Browse files Browse the repository at this point in the history
… CHARACTER SET.
  • Loading branch information
Outlivier committed Jul 10, 2015
1 parent b29dd6a commit 8afa689
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Expand Up @@ -168,6 +168,7 @@ public void Execute(bool autoCommit = true)
{
switch (statementType)
{
case SqlStatementType.AlterCharacterSet:
case SqlStatementType.AlterDatabase:
case SqlStatementType.AlterDomain:
case SqlStatementType.AlterException:
Expand Down Expand Up @@ -747,7 +748,11 @@ public static SqlStatementType GetStatementType(string sqlStatement)
switch (type)
{
case 'A':
if (StringParser.StartsWith(sqlStatement, "ALTER DATABASE", true))
if (StringParser.StartsWith(sqlStatement, "ALTER CHARACTER SET", true))
{
return SqlStatementType.AlterCharacterSet;
}
if ((StringParser.StartsWith(sqlStatement, "ALTER DATABASE", true)))
{
return SqlStatementType.AlterDatabase;
}
Expand Down
Expand Up @@ -35,6 +35,11 @@ public enum SqlStatementType
/// </summary>
AlterDatabase = 0,

/// <summary>
/// Represents the SQL statement: <b>ALTER CHARACTER SET</b>
/// </summary>
AlterCharacterSet,

/// <summary>
/// Represents the SQL statement: <b>ALTER DOMAIN</b>
/// </summary>
Expand Down

0 comments on commit 8afa689

Please sign in to comment.