Skip to content

CASE WHEN EXISTS(...) THEN TRUE ELSE FALSE END AS my_column is not inferred as boolean #311

@yguedidi

Description

@yguedidi
  • Create an ORM QueryBuilder
  • Call ->select('CASE WHEN EXISTS(SELECT 1) THEN TRUE ELSE FALSE END AS my_column')
  • Call ->getQuery()->getResult()

See the type of my_column inferred as 0|'0'

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