summaryrefslogtreecommitdiff
path: root/test/orm/inheritance.py
Commit message (Collapse)AuthorAgeFilesLines
* merging 0.4 branch to trunk. see CHANGES for details. 0.3 moves to ↵Mike Bayer2007-07-271-575/+0
| | | | maintenance branch in branches/rel_0_3.
* - added friendlier error checking for query.get() with too-short pkMike Bayer2007-07-151-0/+5
| | | | - more docs
* - more docsMike Bayer2007-07-151-0/+3
| | | | | - some more query tests - removed warnings from testbase to appease the buildbots
* - test module turns warnings into exceptions so they can be tested forMike Bayer2007-07-141-4/+11
| | | | | - the two mapper PK tests should actually warn on the id column collision - reverted abc_inheritance back to normal
* - improved ability to get the "correct" and most minimal set of primary keyMike Bayer2007-07-141-0/+74
| | | | | | | columns from a join, equating foreign keys and otherwise equated columns. this is also mostly to help inheritance scenarios formulate the best choice of primary key columns. [ticket:185] - added 'bind' argument to Sequence.create()/drop(), ColumnDefault.execute()
* - a warning is issued by Mapper when two primary key columns of theMike Bayer2007-07-131-2/+2
| | | | | same name are munged into a single attribute. this happens frequently when mapping to joins (or inheritance).
* fixed two bad __init__ callsMike Bayer2007-05-271-4/+6
|
* - fixes [ticket:185], join object determines primary key and removesMike Bayer2007-03-271-7/+22
| | | | | | | | columns that are FK's to other columns in the primary key collection. - removed workaround code from query.py get() - removed obsolete inheritance test from mapper - added new get() test to inheritance.py for this particular issue - ColumnCollection has nicer string method
* - added a standardized test harness for ORM testsMike Bayer2007-01-271-67/+23
| | | | - added three-level mapping test. needed some massaging for postgres
* fixed some imports, transaction hanging openrel_0_3_0Mike Bayer2006-10-221-1/+0
|
* - a fair amount of cleanup to the schema package, removal of ambiguousMike Bayer2006-10-141-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | methods, methods that are no longer needed. slightly more constrained useage, greater emphasis on explicitness. - table_iterator signature fixup, includes fix for [ticket:288] - the "primary_key" attribute of Table and other selectables becomes a setlike ColumnCollection object; is no longer ordered or numerically indexed. a comparison clause between two pks that are derived from the same underlying tables (i.e. such as two Alias objects) can be generated via table1.primary_key==table2.primary_key - append_item() methods removed from Table and Column; preferably construct Table/Column/related objects inline, but if needed use append_column(), append_foreign_key(), append_constraint(), etc. - table.create() no longer returns the Table object, instead has no return value. the usual case is that tables are created via metadata, which is preferable since it will handle table dependencies. - added UniqueConstraint (goes at Table level), CheckConstraint (goes at Table or Column level) fixes [ticket:217] - index=False/unique=True on Column now creates a UniqueConstraint, index=True/unique=False creates a plain Index, index=True/unique=True on Column creates a unique Index. 'index' and 'unique' keyword arguments to column are now boolean only; for explcit names and groupings of indexes or unique constraints, use the UniqueConstraint/Index constructs explicitly. - relationship of Metadata/Table/SchemaGenerator/Dropper has been improved so that the schemavisitor receives the metadata object for greater control over groupings of creates/drops. - added "use_alter" argument to ForeignKey, ForeignKeyConstraint, but it doesnt do anything yet. will utilize new generator/dropper behavior to implement.
* PG didnt like 'user' for a table nameMike Bayer2006-06-261-3/+3
|
* fixed attribute manager's ability to traverse the full set of managed ↵Mike Bayer2006-06-261-2/+42
| | | | attributes for a descendant class, + 2 unit tests
* fixes to inheritance firing off dependency processors correctly + unittestMike Bayer2006-06-221-1/+58
|
* reorganized unit tests into subdirectoriesMike Bayer2006-06-051-0/+417