Open
Description
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