SelectBuilder
does not allow usage of Condition
in projection
#1007
Labels
in: selectbuilder
SelectBuilder stands for the complete API for creating SQL statements programmatically.
type: enhancement
A general enhancement
Milestone
Hi,
Continuning my findings from #995, I noticed that SelectBuilder is too restrictive in regards to Select columns. Consider the valid query
SELECT COUNT(*) > 100 FROM table_of_choice;
. When run in postgres, you will receive a response like:The
select(...)
methods inSelectBuilder
all assume that columns will be instances ofExpression
s. However,X > Y
is aCondition
and aCondition
is not aninstanceof Expression
... :-/My reason for trying this in the first place was to work around #995 / #1003 by leveraging a subselect (which counts as a
Expression
)The text was updated successfully, but these errors were encountered: