From b5060e88ff4604af4c9e51003a078dbb59fce968 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Thu, 9 Mar 2006 00:24:15 +0000 Subject: added 'noninherited table' prop to mapper indicating the "lead" table, in 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. --- examples/polymorph/polymorph.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/polymorph') diff --git a/examples/polymorph/polymorph.py b/examples/polymorph/polymorph.py index 7200aa016..e31f63034 100644 --- a/examples/polymorph/polymorph.py +++ b/examples/polymorph/polymorph.py @@ -6,8 +6,8 @@ import sys # extend from a common base class, although this same approach can be used # with -#db = create_engine('sqlite://', echo=True, echo_uow=False) -db = create_engine('postgres://user=scott&password=tiger&host=127.0.0.1&database=test', echo=True, echo_uow=False) +db = create_engine('sqlite://', echo=True, echo_uow=False) +#db = create_engine('postgres://user=scott&password=tiger&host=127.0.0.1&database=test', echo=True, echo_uow=False) # a table to store companies companies = Table('companies', db, -- cgit v1.2.1