Commits

Author Commit Message Labels Comments Date
Mike Bayer
rollback r990939ba046a, does not apply to 0.6
Branches
rel_0_6
Mike Bayer
- Fixed ReturningResultProxy for zxjdbc dialect. [ticket:2272]
Branches
rel_0_6
Mike Bayer
- Fixed ReturningResultProxy for zxjdbc dialect. [ticket:2272]. Also in 0.6.9
Mike Bayer
- Fixed bug whereby with_only_columns() method of Select would fail if a selectable were passed. [ticket:2270]. However, the FROM behavior is still incorrect here, so you need 0.7 in any case for this use case to be usable.
Branches
rel_0_6
Mike Bayer
- Fixed bug whereby with_only_columns() method of Select would fail if a selectable were passed. [ticket:2270]. Also in 0.6.9.
Mike Bayer
patch from 0.7: Adjusted the "importlater" mechanism, which is used internally to resolve import cycles, such that the usage of __import__ is completed when the import of sqlalchemy or sqlalchemy.orm is done, thereby avoiding any usage of __import__ after the application starts new threads, fixes [ticket:2279].
Branches
rel_0_6
Mike Bayer
- Adjusted the "importlater" mechanism, which is used internally to resolve import cycles, such that the usage of __import__ is completed when the import of sqlalchemy or sqlalchemy.orm is done, thereby avoiding any usage of __import__ after the application starts new threads, fixes [ticket:2279]. Also in 0.6.9.
Mike Bayer
ensure sa_pool_key isn't passed to connect
Mike Bayer
- Added optional "sa_pool_key" argument to pool.manage(dbapi).connect() so that serialization of args is not necessary.
Mike Bayer
plus synonyms accessed as string
Mike Bayer
- added "adapt_on_names" boolean flag to orm.aliased() construct. Allows an aliased() construct to link the ORM entity to a selectable that contains aggregates or other derived forms of a particular attribute, provided the name is the same as that of the entity mapped column.
Mike Bayer
- Changes to attempt support of FreeTDS 0.91 with Pyodbc. This includes that string binds are sent as Python unicode objects when FreeTDS 0.91 is detected, and a CAST(? AS NVARCHAR) is used when we detect for a table. However, I'd continue to characterize Pyodbc + FreeTDS 0.91 behavior as pretty crappy, there are still many queries such as used in reflection which cause a core dump on Linux, and it is not really…
Mike Bayer
ordering
Mike Bayer
- Fixed a variety of synonym()-related regressions from 0.6: - making a synonym against a synonym now works. - synonyms made against a relationship() can be passed to query.join(), options sent to query.options(), passed by name to query.with_parent(). - revised the approach taken earlier to just propagate "property" out from the proxied attr the same way queryable attribute does.
Mike Bayer
- Another previously unknown feature from 0.6, synonyms of relationship() can again be passed to join().
Mike Bayer
- Fixed previously untested function which regressed in 0.7, can now make a synonym() of a synonym() again.
Mike Bayer
- Changed the update() method on association proxy dictionary to use a duck typing approach, i.e. checks for "keys", to discern between update({}) and update((a, b)). Previously, passing a dictionary that had tuples as keys would be misinterpreted as a sequence. [ticket:2275]
Mike Bayer
fix sentence
Mike Bayer
- New event hook, MapperEvents.after_configured(). Called after a configure() step has completed and mappers were in fact affected. Theoretically this event is called once per application, unless new mappings are constructed after existing ones have been used already. - New declarative features: - __declare_last__() method, establishes an event listener for the class method that will be called when mappers are completed with the final "configure" step. - __abstract__ flag. The class will not be mapped at all when this flag is present on the class. - New helper classes ConcreteBase, AbstractConcreteBase…
Mike Bayer
minor callcount bump resulting from r3876c9c0b9a4
Mike Bayer
- Reflection functions for Table, Sequence no longer case insensitive. Names can be differ only in case and will be correctly distinguished. [ticket:2256]
Mike Bayer
- Calling class_mapper() and passing in an object that is not a "type" (i.e. a class that could potentially be mapped) now raises an informative ArgumentError, rather than UnmappedClassError. [ticket:2196]
Mike Bayer
- Identity map .discard() uses dict.pop(,None) internally instead of "del" to avoid KeyError/warning during a non-determinate gc teardown [ticket:2267]
Mike Bayer
- Behavioral improvement: empty conjunctions such as and_() and or_() will be flattened in the context of an enclosing conjunction, i.e. and_(x, or_()) will produce 'X' and not 'X AND ()'. [ticket:2257].
Mike Bayer
- Fixed bug whereby if __eq__() was redefined, a relationship many-to-one lazyload would hit the __eq__() and fail. [ticket:2260] Does not apply to 0.6.9.
Mike Bayer
add test for [ticket:2260]
Branches
rel_0_6
Mike Bayer
fix typo, [ticket:2271]
Branches
rel_0_6
Mike Bayer
fix typo, [ticket:2271]
Mike Bayer
- Fixed bug regarding calculation of "from" list for a select() element. The "from" calc is now delayed, so that if the construct uses a Column object that is not yet attached to a Table, but is later associated with a Table, it generates SQL using the table as a FROM. This change impacted fairly deeply the mechanics of how the FROM list as well as the "correlates" collection is calculated, as some "clause adaption" schemes (these are used ve…
Mike Bayer
and lets use the right method name here...
  1. Prev
  2. Next