Commits

Author Commit Message Labels Comments Date
Mike Bayer
- many-to-many table will be properly handled even for operations that occur on the "backref" side of the operation [ticket:249]
ram
mssql: now passes still more unit tests, [ticket:481]
Mike Bayer
- added db modules to genned docstrings - had to tweak out latest MS-SQL module change. cant do ImportErrors right now until module importing is moved to the connection phase across all dialects. - took out "his" from url docstrings - postgres doesnt do an import *
Mike Bayer
- check for tables in the primaryjoin/secondaryjoin that arent parent of parent/child mappers. dont include those clauses when looking for foreign_keys (which also takes care of remote_side). if those cols are present in foreign_keys, lazyloader makes binds out of them and tries to target those columns on the mapper, raising either the "conflicting column" error if they have the same name, or the "cant find column on mapping" if it has a unique name. added tests for both.
ram
mssql: cleanup of module importing code; specifiable DB-API module; more explicit ordering of module preferences. [ticket:480]
ram
mssql: optionally use VARCHAR(max) instead of TEXT. [ticket:509]
Mike Bayer
- flush fixes on self-referential relationships that contain references to other instances outside of the cyclical chain, when the initial self-referential objects are not actually part of the flush
Mike Bayer
css tag
Mike Bayer
integrated docutils formatting into generated documentation; restructuredtext fixes throughout docstrings
Mike Bayer
merged mako doc generation branch
Mike Bayer
- added a catchall **kwargs to MSString, to help reflection of obscure types (like "varchar() binary" in MS 4.0)
Mike Bayer
"alltests" runners call testbase.main(), which takes an optional suite, so that exit code is propigated
Mike Bayer
literals in PassiveDefault require text()
ram
MSSQL now passes still more unit tests [ticket:481] Fix to null FLOAT fields in mssql-trusted.patch MSSQL: LIMIT with OFFSET now raises an error MSSQL: can now specify Windows authorization MSSQL: ignores seconds on DATE columns (DATE fix, part 1)
ram
fix CASE statement when else_ is zero
Mike Bayer
- eager loading will not "aliasize" "order by" clauses that were placed in the select statement by something other than the eager loader itself, to fix possibility of dupe columns as illustrated in [ticket:495]. however, this means you have to be more careful with the columns placed in the "order by" of Query.select(), that you have explicitly named them in your criterion (i.e. you cant rely on the eager loader adding them in for you) - query._join_to (which powers join, join_via, etc) properly takes secondary table into account when constructing joins
Mike Bayer
- added a handy multi-use "identity_key()" method to Session, allowing the generation of identity keys for primary key values, instances, and rows, courtesy Daniel Miller
Mike Bayer
some docs
Mike Bayer
some formatting
Mike Bayer
- for hackers, refactored the "visitor" system of ClauseElement and SchemaItem so that the traversal of items is controlled by the ClauseVisitor itself, using the method visitor.traverse(item). accept_visitor() methods can still be called directly but will not do any traversal of child items. ClauseElement/SchemaItem now have a configurable get_children() method to return the collection of child elements for each parent object. This allows the full traversal of i…
Mike Bayer
- oracle: - got binary working for any size input ! cx_oracle works fine, it was my fault as BINARY was being passed and not BLOB for setinputsizes (also unit tests werent even setting input sizes). - auto_setinputsizes defaults to True for Oracle, fixed cases where it improperly propigated bad types.
Mike Bayer
- Query has add_entity() and add_column() generative methods. these will add the given mapper/class or ColumnElement to the query at compile time, and apply them to the instances method. the user is responsible for constructing reasonable join conditions (otherwise you can get full cartesian products). result set is the list of tuples, non-uniqued. - fixed multi-mapper instances() to pad out shorter results with None so zip() gets everything
Mike Bayer
- the full featureset of the SelectResults extension has been merged into a new set of methods available off of Query. These methods all provide "generative" behavior, whereby the Query is copied and a new one returned with additional criterion added. The new methods include: filter() - applies select criterion to the query filter_by() - applies "by"-style criterion to the query avg() - return the avg() function on the given column join() - join to a property (or across a list of properties) outerjoin() - like join() but uses LEFT OUTER JOIN limit()/offset() - apply LIMIT/OFFSET range-based access which applies limit/offset: session.query(Foo)[3:5] …
Mike Bayer
cleanup of reversed
Mike Bayer
- fixed usage of 2.4-only "reversed" in topological.py [ticket:506]
Mike Bayer
- fixed use_alter flag on ForeignKeyConstraint [ticket:503]
Mike Bayer
- options() method on SelectResults now implemented "generatively" like the rest of the SelectResults methods [ticket:472]
Mike Bayer
need an "alias()" on map to a select
Mike Bayer
decorated ImportError thrown when the <database>:// module isnt found
Mike Bayer
added "enable_typechecks=True" flag on relation so the new type check from #500 can be disabled, since people are going to want to disable it.
  1. Prev
  2. Next