diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-04-20 03:09:10 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-04-20 03:09:10 -0400 |
| commit | 7f0ee900b6c35a9bff214f9ebb02c3fb98d1f7e1 (patch) | |
| tree | 465c78bbed712377be96efc6516913169ce27f37 /doc | |
| parent | 39259d94f51f3ac86d0d4d1dc38410ba92152ce3 (diff) | |
| download | sqlalchemy-7f0ee900b6c35a9bff214f9ebb02c3fb98d1f7e1.tar.gz | |
- this issue is a bug, mention the apply_labels issue sooner
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/build/changelog/changelog_08.rst | 43 |
1 files changed, 22 insertions, 21 deletions
diff --git a/doc/build/changelog/changelog_08.rst b/doc/build/changelog/changelog_08.rst index bdba906bb..2a2925726 100644 --- a/doc/build/changelog/changelog_08.rst +++ b/doc/build/changelog/changelog_08.rst @@ -7,7 +7,7 @@ :version: 0.8.1 .. change:: - :tags: bug + :tags: bug, orm :tickets: 2708 Improved the behavior of instance management regarding @@ -23,6 +23,27 @@ a `__del__()` method is mapped. .. change:: + :tags: bug, sql + :tickets: 2702 + + A major fix to the way in which a select() object produces + labeled columns when apply_labels() is used; this mode + produces a SELECT where each column is labeled as in + <tablename>_<columnname>, to remove column name collisions + for a multiple table select. The fix is that if two labels + collide when combined with the table name, i.e. + "foo.bar_id" and "foo_bar.id", anonymous aliasing will be + applied to one of the dupes. This allows the ORM to handle + both columns independently; previously, 0.7 + would in some cases silently emit a second SELECT for the + column that was "duped", and in 0.8 an ambiguous column error + would be emitted. The "keys" applied to the .c. collection + of the select() will also be deduped, so that the "column + being replaced" warning will no longer emit for any select() + that specifies use_labels, though the dupe key will be given + an anonymous label which isn't generally user-friendly. + + .. change:: :tags: bug, mysql :pullreq: 54 @@ -118,26 +139,6 @@ handling routine fails and regardless of whether the condition is a disconnect or not. - .. change:: - :tags: bug, sql - :tickets: 2702 - - A major fix to the way in which a select() object produces - labeled columns when apply_labels() is used; this mode - produces a SELECT where each column is labeled as in - <tablename>_<columnname>, to remove column name collisions - for a multiple table select. The fix is that if two labels - collide when combined with the table name, i.e. - "foo.bar_id" and "foo_bar.id", anonymous aliasing will be - applied to one of the dupes. This allows the ORM to handle - both columns independently; previously, 0.7 - would in some cases silently emit a second SELECT for the - column that was "duped", and in 0.8 an ambiguous column error - would be emitted. The "keys" applied to the .c. collection - of the select() will also be deduped, so that the "column - being replaced" warning will no longer emit for any select() - that specifies use_labels, though the dupe key will be given - an anonymous label which isn't generally user-friendly. .. change:: :tags: bug, orm, declarative |
