-
-
Notifications
You must be signed in to change notification settings - Fork 198
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
Exception on creating a query with index and predicate including DateTimeOffset using Postgresql dialect #531
Comments
Because it didn't have to convert a The bug is probably happening because a |
I'm running into the same issue with Postgresql. The reproduction with Orchard Core is very simple.
|
Forgot to take care of this one. Best help I could get would be a PR in this repository with a failing test. |
Hi all,
The following (simplified) query using an predicate and an index
results in the following exception using postgresql dialect but not on sqlite:
Full original query can be found here.
Used Version:
This only occurs when using PostgreSQL dialect.
Workaround that helped but I'm not sure about the side effects:
Removing the DateTimeOffset type handler in PostgreSqlDialect
https://github.com/sebastienros/yessql/blob/main/src/YesSql.Provider.PostgreSql/PostgreSqlDialect.cs#L96
or changing the predicate to use a temporary date-time variable (not sure why this helped)
The text was updated successfully, but these errors were encountered: