Hi there,

I am writing a custom dialect and sqlalchemy currently generates a 
statement like this:

```
SELECT count(some_table.id) AS count_1, some_table.x + some_table.y AS lx 
FROM some_table GROUP BY some_table.x + some_table.y ORDER BY lx
```

As you can see it uses the alias lx in ORDER BY but not in GROUP BY. Is 
there any way to tell it to use the alias in GROUP BY instead of the raw 
expression (my database doesn't seem to support those expressions in group 
by)?
The test I am currently running against is test_group_by_composed from the 
sqlalchemy test suite.

Also I needed to add:
```
    @property  # WTF
    def broken_cx_oracle6_numerics(self):
        return exclusions.closed()
```
and others to the requirements of my dialect to get the testsuite running 
at all. Shouldn't sqlalchemy ship with sane default requirements (I mainly 
followed 
https://github.com/zzzeek/sqlalchemy/blob/master/README.dialects.rst )?

Thanks and best regards,
Florian

-- 
SQLAlchemy - 
The Python SQL Toolkit and Object Relational Mapper

http://www.sqlalchemy.org/

To post example code, please provide an MCVE: Minimal, Complete, and Verifiable 
Example.  See  http://stackoverflow.com/help/mcve for a full description.
--- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to