Where clause column names on right hand side of conditional operator are not quoted for postgres

Description

When where clause have column names on either side of conditional operator, right hand side column name is not quoted and hence query fails to run on Postgres db.
E.g.

1 2 Query query = Query.select().alias(Task.class, "tsk").where("tsk.IS_DELETED = ? AND tsk.DUE_DATE > tsk.START_DATE", false); int total = ao.count(Task.class, query);

In above case tsk.START_DATE should have been replaced as tsk."START_DATE" but that does not happen and postgres complains column does not exist.

Environment

None

Testing Notes

Add notes...

Status

Assignee

Unassigned

Reporter

Parag Bhole

Labels

None

Add-on Type

None

Team

None

CC

None

Risk factor

None

QA Kickoff Status

None

QA Demo Status

None

Priority

Major
Configure