]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- [bug] Fixed a regression since 0.6 regarding
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 1 Sep 2012 00:03:57 +0000 (20:03 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 1 Sep 2012 00:03:57 +0000 (20:03 -0400)
commit90ad3c5e16ffe4f972144eebaf7a7e2a0397c9c0
tree07f6aaba42570e6b3ec7f2d3be37263c7eeccdb9
parentd4fe45ac8c8d8bfb78682b758262412425febd74
  - [bug] Fixed a regression since 0.6 regarding
    result-row targeting.   It should be possible
    to use a select() statement with string
    based columns in it, that is
    select(['id', 'name']).select_from('mytable'),
    and have this statement be targetable by
    Column objects with those names; this is the
    mechanism by which
    query(MyClass).from_statement(some_statement)
    works.  At some point the specific case of
    using select(['id']), which is equivalent to
    select([literal_column('id')]), stopped working
    here, so this has been re-instated and of
    course tested. [ticket:2558]
CHANGES
lib/sqlalchemy/sql/expression.py
test/orm/test_query.py
test/sql/test_query.py