summaryrefslogtreecommitdiff
path: root/examples/polymorph/single.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2007-07-27 04:08:53 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2007-07-27 04:08:53 +0000
commited4fc64bb0ac61c27bc4af32962fb129e74a36bf (patch)
treec1cf2fb7b1cafced82a8898e23d2a0bf5ced8526 /examples/polymorph/single.py
parent3a8e235af64e36b3b711df1f069d32359fe6c967 (diff)
downloadsqlalchemy-ed4fc64bb0ac61c27bc4af32962fb129e74a36bf.tar.gz
merging 0.4 branch to trunk. see CHANGES for details. 0.3 moves to maintenance branch in branches/rel_0_3.
Diffstat (limited to 'examples/polymorph/single.py')
-rw-r--r--examples/polymorph/single.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/polymorph/single.py b/examples/polymorph/single.py
index dcdb3c890..dfc426416 100644
--- a/examples/polymorph/single.py
+++ b/examples/polymorph/single.py
@@ -1,6 +1,8 @@
from sqlalchemy import *
+from sqlalchemy.orm import *
-metadata = MetaData('sqlite://', echo='debug')
+metadata = MetaData('sqlite://')
+metadata.bind.echo = 'debug'
# a table to store companies
companies = Table('companies', metadata,