Skip to content

Commit

Permalink
Alter role support (DNET-615).
Browse files Browse the repository at this point in the history
  • Loading branch information
cincuranet committed Jun 26, 2015
1 parent 6225375 commit 1d2a4fd
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>EntityFramework.Firebird</id>
<version>4.6.3.0</version>
<version>4.6.4.0</version>
<title>Firebird Entity Framework Provider</title>
<description>The Entity Framework Provider for Firebird enables you to develop .NET applications that connect to the Firebird database using Entity Framework.</description>
<authors>FirebirdSQL</authors>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>FirebirdSql.Data.FirebirdClient</id>
<version>4.6.3.0</version>
<version>4.6.4.0</version>
<title>Firebird ADO.NET Data provider</title>
<description>Firebird ADO.NET Data provider</description>
<authors>FirebirdSQL</authors>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ public void Execute(bool autoCommit = true)
case SqlStatementType.AlterException:
case SqlStatementType.AlterIndex:
case SqlStatementType.AlterProcedure:
case SqlStatementType.AlterRole:
case SqlStatementType.AlterTable:
case SqlStatementType.AlterTrigger:
case SqlStatementType.AlterView:
Expand Down Expand Up @@ -775,6 +776,10 @@ public static SqlStatementType GetStatementType(string sqlStatement)
{
return SqlStatementType.AlterProcedure;
}
if (StringParser.StartsWith(sqlStatement, "ALTER ROLE", true))
{
return SqlStatementType.AlterRole;
}
if (StringParser.StartsWith(sqlStatement, "ALTER SEQUENCE", true))
{
return SqlStatementType.AlterSequence;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ public enum SqlStatementType
/// </summary>
AlterProcedure,

/// <summary>
/// Represents the SQL statement: <b>ALTER ROLE</b>
/// </summary>
AlterRole,

/// <summary>
/// Represents the SQL statement: <b>ALTER SEQUENCE</b>
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ namespace FirebirdSql.Data.FirebirdClient.Properties
{
static class VersionInfo
{
internal const string Version = "4.6.3.0";
internal const string Version = "4.6.4.0";
}
}

0 comments on commit 1d2a4fd

Please sign in to comment.