Skip to content

NULLIF not working for enum values #752

Closed
@amckinney

Description

@amckinney

I was exploring workarounds related to #374, and attempted to use the NULLIF function for an enum in my SELECT query, but noticed it wasn't working according to my expectation.

I created a reproducible example in a playground. In this case, I'm attempting to use NULLIF so that I can handle nil values for the role. Instead, the generated code turns the expected value for a role into a bool.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions