]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- removed query.min()/max()/sum()/avg(). these should be called using column argumen...
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 2 Jun 2008 03:07:12 +0000 (03:07 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 2 Jun 2008 03:07:12 +0000 (03:07 +0000)
commite525aee01556e59ff9fc02dd68fd6a38532fe45a
tree3bb7b616ed238af5e3596c3250565794f19db0d7
parente3e15357202d4c7918fe6a3b8d2d002e4ede3de2
- removed query.min()/max()/sum()/avg().  these should be called using column arguments or values in conjunction with func.
- fixed [ticket:1008], count() works with single table inheritance
- changed the relationship of InstrumentedAttribute to class such that each subclass in an inheritance hierarchy gets a unique InstrumentedAttribute per column-oriented attribute, including for the same underlying ColumnProperty.  This allows expressions from subclasses to be annotated accurately so that Query can get a hold of the exact entities to be queried when using column-based expressions.  This repairs various polymorphic scenarios with both single and joined table inheritance.
- still to be determined is what does something like query(Person.name, Engineer.engineer_info) do; currently it's problematic.  Even trickier is query(Person.name, Engineer.engineer_info, Manager.manager_name)
lib/sqlalchemy/orm/interfaces.py
lib/sqlalchemy/orm/properties.py
lib/sqlalchemy/orm/query.py
lib/sqlalchemy/orm/strategies.py
test/orm/generative.py
test/orm/inheritance/query.py
test/orm/inheritance/single.py
test/orm/query.py