-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Query: converter from bool used in predicate without comparison fails on sqlite (and other non-sql server backends?) #30326
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
Comments
maumar
added a commit
that referenced
this issue
Apr 4, 2023
…comparison fails on sqlite (and other non-sql server backends?) SqlServer doesn't have the problem because search condition replacing visitor already converts all bool values in the predicate into conditions. Fix is to re-purpose this visitor to be used by other providers also and convert bool values to conditions when they have a converter. Fixes #30326
maumar
added a commit
that referenced
this issue
Apr 12, 2023
…comparison fails on sqlite (and other non-sql server backends?) SqlServer doesn't have the problem because search condition replacing visitor already converts all bool values in the predicate into conditions. Fix is to re-purpose this visitor to be used by other providers also and convert bool values to conditions when they have a converter. Fixes #30326
maumar
added a commit
that referenced
this issue
Apr 12, 2023
…comparison fails on sqlite (and other non-sql server backends?) RelationalValueConverterCompensatingExpressionVisitor was not compensating for bool values with converters for JsonScalarExpression. Fixes #30326
maumar
added a commit
that referenced
this issue
Apr 13, 2023
…comparison fails on sqlite (and other non-sql server backends?) RelationalValueConverterCompensatingExpressionVisitor was not compensating for bool values with converters for JsonScalarExpression. Fixes #30326
maumar
added a commit
that referenced
this issue
Apr 13, 2023
…comparison fails on sqlite (and other non-sql server backends?) RelationalValueConverterCompensatingExpressionVisitor was not compensating for bool values with converters for JsonScalarExpression. Fixes #30326
maumar
added a commit
that referenced
this issue
Apr 13, 2023
…comparison fails on sqlite (and other non-sql server backends?) RelationalValueConverterCompensatingExpressionVisitor was not compensating for bool values with converters for JsonScalarExpression. Fixes #30326
maumar
added a commit
that referenced
this issue
Apr 14, 2023
reopening for potential servicing. Minimal risk, causes data corruption but it was not a customer report - thoughts @ajcvickers ? |
Note from triage: bring to Tactics for patch. |
now that I think about it, patching this doesn't make much sense - we don't support JSON on non-sql server providers, and SQL Server is already covered by search condition visitor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
query:
produces
which gives incorrect results
if we construct the predicate manually, like so:
we produce the correct sql and results
sql server is not affected because search condition visitor always adds the comparison in the predicate, but sqlite can execute query without it. We should be adding comparisons always when predicate has bool value with a converter.
The text was updated successfully, but these errors were encountered: