summaryrefslogtreecommitdiff
path: root/examples/polymorph
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2006-03-09 00:24:15 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2006-03-09 00:24:15 +0000
commitb5060e88ff4604af4c9e51003a078dbb59fce968 (patch)
tree539fe14f93a268875e1ea4717c50dbaaf3c66e90 /examples/polymorph
parentf057ed6136fe5583d4174a55153544783e76699a (diff)
downloadsqlalchemy-b5060e88ff4604af4c9e51003a078dbb59fce968.tar.gz
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.
Diffstat (limited to 'examples/polymorph')
-rw-r--r--examples/polymorph/polymorph.py4
1 files changed, 2 insertions, 2 deletions
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,