Closed kgday closed 2 years ago
Also Firebird 4.0
Thinking about this though, it isn't a true identity column like Firebird 3.0 and up supports but the tradional supplied value from a sequence in a before trigger. Since I want to use FluentMigrator whcih doesn't support Firebird identity columns, I am going to switch to guid and client supplied value.
Describe the bug Using the firebird provider on a table that has an identity column (a bigint with a before trigger and a number generator) I set up the entity with create, assign the values other than the Id column, call context.SubmitUpdates() but the entity continues to have a zero value. Checking the database confirms the record was inserted correctly with a generated value.
To Reproduce Some code:
I set up the event in my test (xUnit) to give me the sql using:
QueryEvents.SqlQueryEvent.Subscribe(fun d -> output.WriteLine(d.ToString()))
The generated sql is
Expected behavior The identity column value should be set in the database entity after SubmitUpdates. It works correctly for MySql.
Environment: