Commits

Show all
Author Commit Message Labels Comments Date
Mike Bayer
more tests
Tags
rel_0_5_3
Mike Bayer
- Fixed bug in dynamic_loader() where append/remove events after construction time were not being propagated to the UOW to pick up on flush(). [ticket:1347]
Mike Bayer
add collections module to API ref for completeness. links to the mapper documentation which is less wordy.
Mike Bayer
- An alias() of a select() will convert to a "scalar subquery" when used in an unambiguously scalar context, i.e. it's used in a comparison operation. This applies to the ORM when using query.subquery() as well.
Mike Bayer
- Fixed SQLite reflection methods so that non-present cursor.description, which triggers an auto-cursor close, will be detected so that no results doesn't fail on recent versions of pysqlite which raise an error when fetchone() called with no rows present.
Mike Bayer
- Query.join() can now construct multiple FROM clauses, if needed. Such as, query(A, B).join(A.x).join(B.y) might say SELECT A.*, B.* FROM A JOIN X, B JOIN Y. Eager loading can also tack its joins onto those multiple FROM clauses. [ticket:1337]
Mike Bayer
- Fixed bug where column_prefix wasn't being checked before not mapping an attribute that already had class-level name present.
Mike Bayer
fix formatting to match unit tests
Jonathan Ellis
add schema to entity method
Mike Bayer
- a forward and complementing backwards reference which are both of the same direction, i.e. ONETOMANY or MANYTOONE, is now detected, and an error message is raised. Saves crazy CircularDependencyErrors later on.
Mike Bayer
take 2
Mike Bayer
attempt to exlude sqlite 3.5.9 and below, for buildbot failure. not clear which version of sqlite fixes this particular issue
Mike Bayer
- Query.group_by() properly takes into account aliasing applied to the FROM clause, such as with select_from(), using with_polymorphic(), or using from_self().
Mike Bayer
some buildbot fixes
Mike Bayer
- updated builders for latest sphinx tip - applied patch from [ticket:1321]
Mike Bayer
- The "objects" argument to session.flush() is deprecated. State which represents the linkage between a parent and child object does not support "flushed" status on one side of the link and not the other, so supporting this operation leads to misleading results. [ticket:1315]
Mike Bayer
- Added PGUuid and PGBit types to sqlalchemy.databases.postgres. [ticket:1327] - Refection of unknown PG types won't crash when those types are specified within a domain. [ticket:1327] - executemany() in conjunction with INSERT..RETURNING is documented as undefined by psycopg2.
Mike Bayer
- Fixed adaptation of EXISTS clauses via any(), has(), etc. in conjunction with an aliased object on the left and of_type() on the right. [ticket:1325]
lele
Fix markup glitch
Mike Bayer
- pared down private and semi-private functions in the attributes package. - simplified the process of establishment and unestablishment of class management from a mapper perspective; class manager setup/teardown is now symmetric (ClassManager would never be fully de-associated previously). - class manager now unconditionally decorates __init__. this has a slight behavior change for an unmapped subclass of a mapped superclass, in that InstanceState creation corresponds …
Mike Bayer
- Declarative will accept a table-bound column as a property when used in conjunction with __table__, if the column is already present in __table__. The column will be remapped to the given key the same way as when added to the mapper() properties dict.
Mike Bayer
- Query won't fail with weakref error when a non-mapper/class instrumented descriptor is passed, raises "Invalid column expession".
Mike Bayer
- Declarative locates the "inherits" class using a search through __bases__, to skip over mixins that are local to subclasses.
ged
fix docstring indent in orm.util.with_parent
Michael Trier
Corrected issue on mssql where max_identifier_length was not being respected.
Mike Bayer
- Session.scalar() now converts raw SQL strings to text() the same way Session.execute() does and accepts same alternative **kw args.
Mike Bayer
- Declarative will properly interpret the "foreign_keys" argument on a backref() if it's a string.
Mike Bayer
- Fixed a recursive pickling issue in serializer, triggered by an EXISTS or other embedded FROM construct.
Mike Bayer
- Declarative figures out joined-table inheritance primary join condition even if "inherits" mapper argument is given explicitly. Allows mixins to be used with joined table inheritance.
Mike Bayer
- Added an attribute helper method ``set_committed_value`` in sqlalchemy.orm.attributes. Given an object, attribute name, and value, will set the value on the object as part of its "committed" state, i.e. state that is understood to have been loaded from the database. Helps with the creation of homegrown collection loaders and such. - documented public attributes helper functions.
  1. Prev
  2. Next