summaryrefslogtreecommitdiff
path: root/examples/sharding
diff options
context:
space:
mode:
authorMichael Trier <mtrier@gmail.com>2009-04-13 03:23:19 +0000
committerMichael Trier <mtrier@gmail.com>2009-04-13 03:23:19 +0000
commitb5ad47271e68a30b2acd8f990af331de8e1069f3 (patch)
tree3f5e960ae01b98bf4b013afc951f20415748cec1 /examples/sharding
parenteba7328c46202af92de63d2b019bb2e4892255b7 (diff)
downloadsqlalchemy-b5ad47271e68a30b2acd8f990af331de8e1069f3.tar.gz
Cleaned up the deprecation problems with the examples.
Diffstat (limited to 'examples/sharding')
-rw-r--r--examples/sharding/attribute_shard.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/sharding/attribute_shard.py b/examples/sharding/attribute_shard.py
index 45a019f13..2f03a5a34 100644
--- a/examples/sharding/attribute_shard.py
+++ b/examples/sharding/attribute_shard.py
@@ -184,10 +184,10 @@ quito.reports.append(Report(85))
sess = create_session()
for c in [tokyo, newyork, toronto, london, dublin, brasilia, quito]:
- sess.save(c)
+ sess.add(c)
sess.flush()
-sess.clear()
+sess.expunge_all()
t = sess.query(WeatherLocation).get(tokyo.id)
assert t.city == tokyo.city