Issue Details (XML | Word | Printable)

Key: DNET-901
Type: Bug Bug
Status: Closed Closed
Resolution: Won't Fix
Priority: Major Major
Assignee: Jiri Cincura
Reporter: Andreas Patock
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
.NET Data provider

FbMigrationsSqlGenerator doesn't respect different code generation for firebird 2.5 and 3.0

Created: 01/Oct/19 09:22 AM   Updated: 01/Oct/19 09:36 AM
Component/s: Entity Framework Core
Affects Version/s: 7.1.1.0
Fix Version/s: None

Environment: .net core 2.2 project with simple Blog and Post Example


 Description  « Hide
Generating the Tables via dotnet ef database update is working as expected if the Firebird-Server Version >= 3.0!
But running the same with Firebird-Server Version 2.5 leads to the following error:

D:\Source\CodeFirstTest\CodeFirstTest>dotnet ef database update -c CodeFirstTest.Model.FirebirdBloggingContext

Applying migration '20191001083549_Initial'.
Failed executing DbCommand (23ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE TABLE "Blogs" (
    "BlogId" INTEGER GENERATED BY DEFAULT AS IDENTITY NOT NULL,
    "Name" BLOB SUB_TYPE TEXT,
    CONSTRAINT "PK_Blogs" PRIMARY KEY ("BlogId")
);
FirebirdSql.Data.FirebirdClient.FbException (0x80004005): Dynamic SQL Error
SQL error code = -104
Token unknown - line 2, column 32
BY ---> Dynamic SQL Error
SQL error code = -104
Token unknown - line 2, column 32
BY
   at FirebirdSql.Data.FirebirdClient.FbCommand.ExecuteNonQuery()
   at Microsoft.EntityFrameworkCore.Storage.Internal.RelationalCommand.Execute(IRelationalConnection connection, DbCommandMethod executeMethod, IReadOnlyDictionary`2 parameterValues)
   at Microsoft.EntityFrameworkCore.Storage.Internal.RelationalCommand.ExecuteNonQuery(IRelationalConnection connection, IReadOnlyDictionary`2 parameterValues)
   at Microsoft.EntityFrameworkCore.Migrations.Internal.MigrationCommandExecutor.ExecuteNonQuery(IEnumerable`1 migrationCommands, IRelationalConnection connection)
   at Microsoft.EntityFrameworkCore.Migrations.Internal.Migrator.Migrate(String targetMigration)
   at Microsoft.EntityFrameworkCore.Design.Internal.MigrationsOperations.UpdateDatabase(String targetMigration, String contextType)
   at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.Execute(Action action)
Dynamic SQL Error
SQL error code = -104
Token unknown - line 2, column 32
BY


 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Jiri Cincura added a comment - 01/Oct/19 09:36 AM
That's expected. FB3.0 and up is only considered and supported by EFCore provider. And I currently don't plan adding support for 2.5, mostly because of lack of resources.