Commits

Author Commit Message Labels Comments Date
Mike Bayer
- tables with schemas can still be used in sqlite, firebird, schema name just gets dropped [ticket:890]
Mike Bayer
- fixed wrong varname in session exception throw - fixed vertical example to just use a scoped session
Mike Bayer
- a major behavioral change to collection-based backrefs: they no longer trigger lazy loads ! "reverse" adds and removes are queued up and are merged with the collection when it is actually read from and loaded; but do not trigger a load beforehand. For users who have noticed this behavior, this should be much more convenient than using dynamic relations in some cases; for those who have not, you might notice your apps using a lot fewer queries than before in s…
Mike Bayer
- basic framework for generic functions, [ticket:615] - changed the various "literal" generation functions to use an anonymous bind parameter. not much changes here except their labels now look like ":param_1", ":param_2" instead of ":literal" - from_obj keyword argument to select() can be a scalar or a list.
Mike Bayer
- fixed backref bug where you could not del instance.attr if attr was None
Mike Bayer
- relaxed rules on column_property() expressions having labels; any ColumnElement is accepted now, as the compiler auto-labels non-labeled ColumnElements now. a selectable, like a select() statement, still requires conversion to ColumnElement via as_scalar() or label().
ged
typo
Mike Bayer
fixed replacement of existing column properties with synonyms, [ticket:888]
Mike Bayer
- moved class-level attributes placed by the attributes package into a _class_state variable attached to the class. - mappers track themselves primarily using the "mappers" collection on _class_state. ClassKey is gone and mapper lookup uses regular dict keyed to entity_name; removes a fair degree of WeakKeyDictionary overhead as well as ClassKey overhead. - mapper_registry renamed to _mapper_registry; is only consulted by the compile_mappers(), mapper.compile() and clear_mappers(…
Mike Bayer
- several ORM attributes have been removed or made private: mapper.get_attr_by_column(), mapper.set_attr_by_column(), mapper.pks_by_table, mapper.cascade_callable(), MapperProperty.cascade_callable(), mapper.canload() - refinements to mapper PK/table column organization, session cascading, some naming convention work
Mike Bayer
added test to ensure two conflicting m2m + backrefs raise an error
Mike Bayer
remove a little cruft
Mike Bayer
- added support for version_id_col in conjunction with inheriting mappers. version_id_col is typically set on the base mapper in an inheritance relationship where it takes effect for all inheriting mappers. [ticket:883] - a little rearrangement of save_obj()
Mike Bayer
- adjustment to the previous checkin regarding inheritance to not conflict with globals - fix to self-referential eager loading such that if the same mapped instance appears in two or more distinct sets of columns in the same result set, its eagerly loaded collection will be populated regardless of whether or not all of the rows contain a set of "eager" columns for that collection. this would also show up as a KeyError when fetching results with join_depth turned on.
Mike Bayer
- fixed bug where Query would not apply a subquery to the SQL when LIMIT was used in conjunction with an inheriting mapper where the eager loader was only in the parent mapper.
Mike Bayer
cleanup
Mike Bayer
fixed unicode-ness for Unicode values
Mike Bayer
- fixed bug which could arise when using session.begin_nested() in conjunction with more than one level deep of enclosing session.begin() statements
Mike Bayer
new synonym() behavior, including auto-attribute gen, attribute decoration, and auto-column mapping implemented; [ticket:801]
Mike Bayer
default value of assert_unicode is None on String, False on create_engine(), and True on Unicode type.
Mike Bayer
- column labels in the form "tablename.columname", i.e. with a dot, are now supported.
Mike Bayer
opened up the test for "reflection with convert_unicode=True". this is since convert_unicode by default has assert_unicode, want to ensure that other dialects (at least oracle) support this (i.e. not unicode schema names themselves, just that they dont sent thru bytestrings to a String). if maxdb or sybase *should* be able to handle this too though I can't test on this end.
Mike Bayer
added None to support zope __provides__, [ticket:882]
Mike Bayer
added a test to validate ResultProxy truncation behavior
Mike Bayer
un-screw up the attribute manager checkin
Mike Bayer
fixed reflection of unicode, [ticket:881]
Mike Bayer
AttributeManager class and "cached" state removed....attribute listing is tracked from _sa_attrs class collection
paj
Fix: MSSQL set identity_insert and errors [ticket:538]
Mike Bayer
- check for NoneType too with unicode.... - fixed ORM tests to have proper unicode
paj
MSSQL doesn't support subqueries in insert values; disable test
  1. Prev
  2. Next