Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: pdevito3/QueryKit
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.9.6
Choose a base ref
...
head repository: pdevito3/QueryKit
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.9.7
Choose a head ref
  • 2 commits
  • 3 files changed
  • 2 contributors

Commits on Sep 28, 2025

  1. fix: resolve type of conditional expressions in derived properties

    Previously, derived properties with conditional expressions returning mixed
    nullable/non-nullable types would have their type resolved to Object, causing:
    "Unsupported value '0' for type 'Object'" errors when filtering.
    
    This occurred with expressions like:
    x.Date.HasValue ? (calculation).Days : (int?)null
    
    The fix properly resolves the type of conditional expressions by:
    1. Detecting when a derived property expression has Object type
    2. Unwrapping any Convert/Unary expressions to find the actual conditional
    3. Analyzing the true/false branches to determine the correct type
    4. Reconstructing the conditional expression with the proper type
    5. Converting the left expression for comparison to use the resolved type
    
    Also improved CreateRightExpr to handle Object-typed conditional expressions
    by resolving their actual underlying type before creating comparison values.
    
    Test added to verify complex conditional expressions with nullable types
    work correctly for filtering operations.
    
    🤖 Generated with [Claude Code](https://claude.com/claude-code)
    
    Co-Authored-By: Claude <noreply@anthropic.com>
    pdevito3 and claude committed Sep 28, 2025
    Configuration menu
    Copy the full SHA
    18a6107 View commit details
    Browse the repository at this point in the history
  2. build: v1.9.7

    pdevito3 committed Sep 28, 2025
    Configuration menu
    Copy the full SHA
    e5c49fb View commit details
    Browse the repository at this point in the history
Loading