Skip to content

coalesce() incorrectly expands constant values #339

Open
@nextghost

Description

@nextghost

When you pass string constant into coalesce, it will be expanded as identifier instead of string constant:
db().select(db.table.str_field.coalesce('foo'))
would expand into this:
SELECT COALESCE(table.str_field,foo) FROM table
but the expected behavior is this:
SELECT COALESCE(table.str_field,'foo') FROM table

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions