Skip to content

eb.case's then, thenRef, else and elseRef might be too permissive. #1603

@igalklebanov

Description

@igalklebanov

Hey 👋

Currently, then, thenRef*, else and elseRef* are too permissive at compile-time.

Engines like PostgreSQL will fail queries based on case return data type group mismatches.

Fail if there is not an implicit conversion from a given input type to the candidate type
https://www.postgresql.org/docs/current/typeconv-union-case.html

While engines like MySQL are accepting all combos.


* pending release in 0.29.

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiRelated to library's APIbugSomething isn't workingpostgresRelated to PostgreSQLtypescriptRelated to Typescript

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions