Commits

Show all
Author Commit Message Labels Comments Date
Mike Bayer
- refined and clarified query.__join() for readability - _ORMJoin() gets a new flag join_to_left to specify if we really want to alias from the existing left side or not. eager loading wants this flag off in almost all cases, query.join() usually wants it on. - query.join()/outerjoin() will now properly join an aliased() construct to the existing left side, even if query.from_self() or query.select_from(someselectable) has been called. [ticket:1293]
Tags
rel_0_5_2
Mike Bayer
moved the non-expire of unloaded deferred attributes into the attributes package
Mike Bayer
- session.expire() and related methods will not expire() unloaded deferred attributes. This prevents them from being needlessly loaded when the instance is refreshed.
Michael Trier
Correction to reflection fix r5718 to handle Binary / other numeric types.
ram
mssql: modified table reflection code to use only kwargs when constructing coldefs.
Mike Bayer
- Fixed an eager loading bug whereby self-referential eager loading would prevent other eager loads, self referential or not, from joining to the parent JOIN properly. Thanks to Alex K for creating a great test case.
Mike Bayer
- Adjusted the attribute instrumentation change from 0.5.1 to fully establish instrumentation for subclasses where the mapper was created after the superclass had already been fully instrumented. [ticket:1292]
Michael Trier
Trying one more time to get the decimal handling on mssql right. Closes #1282.
Michael Trier
Restored convert_unicode handling on mssql. Fixes #1291.
Mike Bayer
- Further refined 0.5.1's warning about delete-orphan cascade placed on a many-to-many relation. First, the bad news: the warning will apply to both many-to-many as well as many-to-one relations. This is necessary since in both cases, SQLA does not scan the full set of potential parents when determining "orphan" status - for a persistent object it only detects an in-python de-association event to establish the object as an "orphan". Next, the good news: to support one-to-one via a foreign key or assocation table, or to support one-to-many via an association table, a new flag single_parent=True may be set which indicates objects linked to the relation are only meant to have a single parent. The relation will raise an error if multiple parent-association events occur within Python. - Fixed bug in delete-orphan cascade whereby two one-to-one relations from two different parent classes to the same target class would prematurely expunge the instance. This is an extension of the non-ticketed fix in r4247. - the order of "sethasparent" flagging in relation to AttributeExtensions has been refined such that false setparents are issued before the event, true setparents issued afte…
Mike Bayer
added some missing internal types for reflection, [ticket:1287]
Mike Bayer
remove comparison/group by on TEXT columns
Mike Bayer
- Further fixes to the "percent signs and spaces in column/table names" functionality. [ticket:1284] - Still doesn't work for PG/MySQL, which unfortunately would require post_process_text() calls all over the place. Perhaps % escaping can be assembled into IdentifierPreparer.quote() since that's where identifier names are received.
Mike Bayer
dont need pre-0.5 note
Tags
rel_0_5_1
Michael Trier
Corrected handling of large decimal values on mssql. Added more robust tests. - Removed string manipulation on floats. Float types are now passed through to mssql as is. - Fixes #1280
Mike Bayer
more session updates
Mike Bayer
docstring fixup
Mike Bayer
fix errant foreign key
Mike Bayer
fixed more save/clear calls
Mike Bayer
- The "clear()", "save()", "update()", "save_or_update()" Session methods have been deprecated, replaced by "expunge_all()" and "add()". "expunge_all()" has also been added to ScopedSession.
Mike Bayer
explicit rollback to get the connection back to the pool
Mike Bayer
WeakCompositeKey was coded incorrectly and was not weakly referencing anything. However when repaired, the usage within RelationLoader._create_joins() still creates cycles between key elements and the value placed in the dict. In the interests of risk reduction, WCK is now removed and the two caches it was used for are now non-cached. Speed comparisons with one join/eager-heavy web application show no noticeable effect in response time.
Mike Bayer
- misc savepoint test - don't need dialect_impl() for Text
Mike Bayer
- Using delete-orphan on a many-to-many relation is deprecated. This produces misleading or erroneous results since SQLA does not retrieve the full list of "parents" for m2m. To get delete-orphan behavior with an m2m table, use an explcit association class so that the individual association row is treated as a parent. [ticket:1281] - delete-orphan cascade always requires delete cascade. Specifying delete-orphan without delete now raises a deprecation warning. [ticket:1281]
Mike Bayer
- Query.from_self() as well as query.subquery() both disable the rendering of eager joins inside the subquery produced. The "disable all eager joins" feature is available publically via a new query.enable_eagerloads() generative. [ticket:1276] - Added a rudimental series of set operations to Query that receive Query objects as arguments, including union(), union_all(), intersect(), except_(), insertsect_all(), except_all(). See the API documentation for Qu…
Mike Bayer
- use ForeignKey.column as _colspec source in Column._make_proxy(), preventing needless redundant string arithmetic in memoized ForeignKey.column method - _pre_existing_column attribute becomes optional, only needed for original Table-bound column, not proxies - compare two ForeignKeys based on target_fullname, don't assume self._colspec is a string - Fixed bug when overriding a Column with a ForeignKey on a reflected table, where derived columns (i.e. the "virtual" columns of a sele…
Mike Bayer
- Improved the methodology to handling percent signs in column names from [ticket:1256]. Added more tests. MySQL and Postgres dialects still do not issue correct CREATE TABLE statements for identifiers with percent signs in them.
lele
Fix a hyperref
Mike Bayer
prefer this methods
Mike Bayer
- It's an error to add new Column objects to a declarative class that specified an existing table using __table__.
  1. Prev
  2. Next