Uploaded image for project: 're-motion'
  1. RM-4877

SQL Backend: Comparing compound values for inequality causes an incorrect comparison to be emitted

    Details

      Description

      When comparing compound values for inequality, member comparisons must be combined using "or", but they are combined using "and":

      where new { X = 1, Y = 2 } != new { X = o.Property1, Y = o.Property2 }
      

      should be equivalent to:

      where 1 != o.Property1 || 2 != o.Property2
      

      but is interepreted as:

      where 1 != o.Property1 && 2 != o.Property2
      

      Implementation notes: ResolvingExpressionVisitor.VisitBinaryExpression should decide whether to use AndAlso or OrElse.

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                Fabian Schmied
                Reporter:
                Fabian Schmied
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 2 hours
                  2h
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour Time Not Required
                  1h