Skip to content

CASE, WHEN, ELSE support is incomplete for MySQL #271

@sollniss

Description

@sollniss

CASE, WHEN, ELSE support got added with #266, but it does not seem to support all use-cases.

In MySQL the following is valid SQL:

update tbl set col = case when 1 = 2 then 'val' else col end

With the current implementation you can't use dbr.Case in update statements and you can also not provide a column name in dbr.Else.

Please consider adding these two features.

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