redundant label for expression contained in another expression

Issue #1747 resolved
Former user created an issue

We've found a bug in newest SQLAlchemy 0.6b2 (Python 2.6) when testing our system that currently runs on 0.5.6

The query used in our system is very complex but I was able to reproduce the bug with a simple query (see attached patch to one of test cases)

The output is:

SELECT sum(lala(users.id) AS foo) AS bar FROM users

while it should be:

SELECT sum(lala(users.id)) AS bar FROM users

This works correctly in 0.5.6 (at least the complex query from our system - I do not have 0.5.6 sources at the moment to test with attached test case patch)

Comments (3)

  1. Log in to comment