summaryrefslogtreecommitdiff
path: root/test/orm/inheritance/single.py
Commit message (Collapse)AuthorAgeFilesLines
* - unit tests have been migrated from unittest to nose.Mike Bayer2009-06-101-396/+0
| | | | | See README.unittests for information on how to run the tests. [ticket:970]
* - removed test.testing.ORMTest, test.fixtures, and allMike Bayer2009-06-021-4/+5
| | | | dependencies on those.
* - The "clear()", "save()", "update()", "save_or_update()"Mike Bayer2009-01-171-14/+14
| | | | | | Session methods have been deprecated, replaced by "expunge_all()" and "add()". "expunge_all()" has also been added to ScopedSession.
* - property.of_type() is now recognized on a single-tableMike Bayer2009-01-051-6/+83
| | | | | | inheriting target, when used in the context of prop.of_type(..).any()/has(), as well as query.join(prop.of_type(...)).
* - joins along a relation() from a mappedMike Bayer2008-08-121-0/+116
| | | | | | | | | | | | | | class to a mapped subclass, where the mapped subclass is configured with single table inheritance, will include an IN clause which limits the subtypes of the joined class to those requsted, within the ON clause of the join. This takes effect for eager load joins as well as query.join(). Note that in some scenarios the IN clause will appear in the WHERE clause of the query as well since this discrimination has multiple trigger points.
* - The RowTuple object returned by Query(*cols) nowMike Bayer2008-08-051-0/+4
| | | | | | | | | | | features keynames which prefer mapped attribute names over column keys, column keys over column names, i.e. Query(Class.foo, Class.bar) will have names "foo" and "bar" even if those are not the names of the underlying Column objects. Direct Column objects such as Query(table.c.col) will return the "key" attribute of the Column.
* - removed query.min()/max()/sum()/avg(). these should be called using ↵Mike Bayer2008-06-021-7/+91
| | | | | | | | 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)
* merged r4720 from 04 branch for [ticket:1036]Mike Bayer2008-05-101-32/+76
|
* r4695 merged to trunk; trunk now becomes 0.5.Mike Bayer2008-05-091-1/+5
| | | | 0.4 development continues at /sqlalchemy/branches/rel_0_4
* - updated the naming scheme of the base test classes in test/testlib/testing.py;Mike Bayer2008-02-111-1/+1
| | | | | tests extend from either TestBase or ORMTest, using additional mixins for special assertion methods as needed
* - testbase is gone, replaced by testenvJason Kirtland2008-01-121-3/+3
| | | | | | - Importing testenv has no side effects- explicit functions provide similar behavior to the old immediate behavior of testbase - testing.db has the configured db - Fixed up the perf/* scripts
* test suite deprecation rampageJason Kirtland2008-01-091-6/+6
|
* merging 0.4 branch to trunk. see CHANGES for details. 0.3 moves to ↵Mike Bayer2007-07-271-0/+66
maintenance branch in branches/rel_0_3.