Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors when ordering by multiple fields of a model in SQLAlchemy 1.0.2 #432

Closed
elvismacak opened this issue Apr 29, 2015 · 3 comments
Closed
Labels

Comments

@elvismacak
Copy link

when using sqlalchemy 1.0.2 as described in requirements, it cause lots of bug.

the following code runs ok in sqlalchemy 0.9.8, but error in 1.0.2

session.query(Computer).join(Person).order_by('person.age').order_by('person.name').count()
session.query(Computer).join(Person).order_by('person.age').join(Person).order_by('person.name').count()

as my commit 9b06b95, i check it before join to fix the multiple join error, but meet other bugs(also caused by the sqlalchemy 1.0.2).

finally, i rollback the sqlalchemy to 0.9.8, but it's still an import bug.

@jonafato
Copy link

@elvis-macak There were quite a few bug fixes made after SQLAlchemy 1.0.0 was released. Do you still have the same issues with the current stable version (1.0.5)?

@jfinkels
Copy link
Owner

jfinkels commented Feb 4, 2016

Yes, please check a more recent version of SQLAlchemy (i.e. later than 1.0.2). If your problems are solved, then I will increase the minimum version requirement of SQLAlchemy.

@jfinkels jfinkels changed the title Series bugs when using sqlalchemy 1.0.2 Errors when ordering by multiple fields of a model in SQLAlchemy 1.0.2 Feb 13, 2016
@jfinkels jfinkels added the bug label Mar 16, 2016
@jfinkels
Copy link
Owner

This should be fixed by commit 64a5711.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants