Skip to content
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

fix: EXPOSED-280 Comparison operators show incorrect compiler warning with datetime columns #1984

Merged
merged 1 commit into from
Feb 5, 2024

Commits on Feb 2, 2024

  1. fix: EXPOSED-280 Comparison operators show incorrect compiler warning…

    … with datetime columns
    
    An incorrect compiler warning is flagged if a comparison operator, like eq(),
    is used with 2 columns that store certain types. The warning treats the right-side
    column as an EntityID column. The pattern so far seems to be stored types that are
    not part of the Kotlin standard library, namely javatime, jodatime, and UUID types.
    
    This occurs because of recently introduced convenience overrides that are being
    inappropriately chosen. These overrides incorrectly make the ExpressionWithColumnType
    argument's type parameter contravariant, when this annotation should instead be
    set on the calling Expression object's type parameter.
    bog-walk committed Feb 2, 2024
    Configuration menu
    Copy the full SHA
    4e30d11 View commit details
    Browse the repository at this point in the history