summaryrefslogtreecommitdiff
path: root/test/inheritance.py
Commit message (Collapse)AuthorAgeFilesLines
* reorganized unit tests into subdirectoriesMike Bayer2006-06-051-417/+0
|
* added has_key to RowProxy, + caching of key lookupsMike Bayer2006-05-271-1/+3
| | | | | fix for mapper translate_row for deferred columns continuing with the "polymorph-tizing" of the unit of work, dependency processing accesses objects on each target task polymorphically
* merged 0.2 branch into trunk; 0.1 now in sqlalchemy/branches/rel_0_1Mike Bayer2006-05-251-159/+126
|
* added 'supports', 'unsupports' decorators to unittests so that they can all ↵Mike Bayer2006-04-291-0/+2
| | | | pass on all DBs
* added a failing unittest for inheriting mappers with add_propertyMike Bayer2006-04-111-1/+16
|
* added oracle8 test target, sets use_ansi to falseMike Bayer2006-03-231-1/+1
| | | | got mapper, objectstore, inheritance unittest working with oracle8, tweaks to join syntax
* added unit test to test proper construction of lazy clause against inherited ↵Mike Bayer2006-03-221-0/+42
| | | | mapper
* PropertyLoader will not re-determine direction when initialized a second ↵Mike Bayer2006-03-181-0/+34
| | | | time, as it is re-initialized as a copy made for an inheriting mapper, and no longer can get to the correct inheriting table.
* identified more issues with inheritance. mapper inheritance is more ↵Mike Bayer2006-03-171-73/+148
| | | | | | | closed-minded about how it creates the join crit erion as well as the sync rules in inheritance. syncrules have been tightened up to be smarter about creating a new SyncRule given lists of tables and a join clause. properties also checks for relation direction against the "noninherited table" which for the moment makes it a stronger requirement that a relation to a mapper must relate to that mapper's main table, not any tables that it inherits from.
* added 'noninherited table' prop to mapper indicating the "lead" table, in ↵Mike Bayer2006-03-091-6/+8
| | | | | | | | the case of inheritance. relations now create priamry/secondary joins against that lead table. if you want to create it against an inherited table, use explicit join conditions. added 'correlate' argument to CompoundSelect to get polymorph example working again.
* added check to relation that will see if the same table is included between ↵Mike Bayer2006-03-081-8/+21
| | | | the primaryjoin and secondaryjoin, and raises a descriptive exception if so.
* serious overhaul to get eager loads to work inline with an inheriting ↵Mike Bayer2006-03-081-4/+109
| | | | mapper, when the inheritance/eager loads share the same table. mapper inheritance will also favor the columns from the child table over those of the parent table when assigning column values to object attributes. "correlated subqueries" require a flag "correlated=True" if they are in the FROM clause of another SELECT statement, and they want to be correlated. this flag is set by default when using an "exists" clause.
* made SchemaEngine more prominent as the base of Table associationMike Bayer2006-03-011-3/+5
| | | | | | | | | BaseProxyEngine descends from SchemaEngine fixes to sqlite/postgres reflection to use the correct engine for table lookups Table engine can be none which will default to schema.default_engine (although its still positional for now, so still needs to be explicit to make room for Columns) __init__ sets default_engine to be a blank ProxyEngine fixes to test suite to allow --db proxy.<dbname> to really test proxyengine
* implemented SyncRules for mapper with inheritance relationship, fixes ↵Mike Bayer2006-02-261-2/+4
| | | | | | [ticket:81] TableFinder becomes a list-implementing object (should probably create clauseutils or sqlutils for these little helper visitors)
* factored out "syncrule" logic to a separate package, so mapper will be able ↵Mike Bayer2006-02-261-58/+60
| | | | to make use of it as well as properties. also clarifies the "synchronization" idea
* added test to illustrate wacky inhertitance/many-to-many thingMike Bayer2006-02-261-0/+61
|
* ok now they worked...Mike Bayer2006-02-161-33/+40
|
* inheritance testMike Bayer2006-02-161-0/+86
tweaking to try to get alltests to work, unsuccessful