-
Notifications
You must be signed in to change notification settings - Fork 228
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
NET8 Npgsql.PostgresException: '42883: function pg_catalog.timezone(unknown, interval) does not exist #2980
Comments
@gieniowski I'm not actually seeing any In general, it's always best to post an actual runnable, minimal code sample, rather than a query snippet as above - can you please do that? That would allow me to reproduce the issue and investigate. |
@roji Sorry, I wasn't able to prepare nice snippet when creating the issuse... Now you can find it below:
It works when you change the package version to |
Thanks for the code sample - I can now reproduce it and see the regression. This is a parentheses/precedence bug, with 7.0 producing: SELECT b."Id", b."Date"
FROM "Blogs" AS b
WHERE b."Date" <= CAST(((now() + INTERVAL '14 days') AT TIME ZONE 'UTC') AS date) ... and 8.0 producing: SELECT b."Id", b."Date"
FROM "Blogs" AS b
WHERE b."Date" <= CAST(now() + INTERVAL '14 days' AT TIME ZONE 'UTC' AS date) I'll fix this for 8.0.1. |
8.0.2 Still not fixed LINQ2SQL Generates instead of SELECT * |
@KonstantinBadanin This has to be fixed in |
Yeah, I need to release an EFCore.PG patch version (and deal with some other bugs before I do). I'll try to devote some time to this in the coming week or two. |
@roji It looks like this wasn't fixed in |
Thanks @jhartmann123 - you're right, I seem to have forgotten to backport the fix... I've done this now for 8.0.3 - sorry for the additional wait.... |
@roji Hello, have you uploaded the 8.0.3 version to NuGet repository? It seems like the last available 8.x version is 8.0.2. Thanks! |
Not yet. There's a lot going on at the moment, I'll try to do that in the coming couple of weeks. |
Please try to do this before May 14 when EF Core 7 looses support. |
At the moment, prerelease version of 8.0.3 looks like to have been deployed in the private repo. <configuration>
<packageSources>
<clear />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
<add key="NpgsqlMyGet" value="https://www.myget.org/F/npgsql/api/v3/index.json" />
</packageSources>
<packageSourceMapping>
<packageSource key="NpgsqlMyGet">
<package pattern="Npgsql.EntityFrameworkCore.PostgreSQL" />
</packageSource>
<packageSource key="nuget.org">
<package pattern="*" />
</packageSource>
</packageSourceMapping>
</configuration> |
writing query that contain such condition:
which is translated to this where statement:
causes this error:
Npgsql.PostgresException: '42883: function pg_catalog.timezone(unknown, interval) does not exist
Not sure if it changes anyting, but I am using EFCore.NamingConventions. I have tried both versions 7.0.2 and 8.0.0-rc.2 and have the same error.
The text was updated successfully, but these errors were encountered: