-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Npgsql generates PERFORM command in migration (when switching from SERIAL to IDENTITY) #1154
Comments
This was introduced in #1089 - I think we didn't look at this close enough (and real EF migration tests are sorely lacking, dotnet/efcore#19039). I'll take a deeper look and either revert this entirely, or make the migration generate a DO block if that's necessary. |
Rollback to 3.0.1 version if you cant wait for 3.1.1, it works with Core 3.1. |
roji
changed the title
Npgsql generates PERFORM command in migration, causes syntax error
Npgsql generates PERFORM command in migration (when switching from SERIAL to IDENTITY)
Dec 9, 2019
roji
added a commit
that referenced
this issue
Dec 9, 2019
roji
added a commit
that referenced
this issue
Dec 9, 2019
roji
added a commit
that referenced
this issue
Dec 9, 2019
This is further tracked in #1157. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yesterday, I migrated our project from ASP.NET Core 3.0 to 3.1 but during the testing phase that involved applying some pending migrations, I ran into this issue:
It appears the engine generates a
PERFORM
instead of aSELECT
which I would expect should be applicable. (In my past experience,PERFORM
is only usable in a PL/pgSQL script.) The commands executed are related to the transition to the identity mechanism that EF Core 3 appears to be using now.This issue does not occur with .NET Core 3.0.
If any more information is required, I'll be happy to oblige.
The text was updated successfully, but these errors were encountered: