Add auto_extend_select_list argument in buildSQLQuery() and use alias in...
Kazuhiko Shiozaki authored
Add auto_extend_select_list argument in buildSQLQuery() and use alias in group_by_expression and order_by_expression.

If True, select_list is automatically extended to have columns used in
group_by_list and order_by_list. It is useful when use
select_expression in inner query and use group_by_expression or
order_by_expression in outer query.
bdcdaca8