This commit is contained in:
Mike Bayer
2012-10-23 14:22:56 -04:00
parent bac14cdf47
commit 4fe1703322
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -13,7 +13,7 @@
Added a new method :meth:`.Engine.execution_options`
to :class:`.Engine`. This method works similarly to
:class:`.Connection.execution_options` in that it creates
:meth:`.Connection.execution_options` in that it creates
a copy of the parent object which will refer to the new
set of options. The method can be used to build
sharding schemes where each engine shares the same
+1 -1
View File
@@ -1396,7 +1396,7 @@ class Engine(Connectable, log.Identified):
current_shard = conn.info.get("current_shard", None)
if current_shard != shard_id:
cursor.execute("use %%s" %% shards[shard_id])
cursor.execute("use %s" % shards[shard_id])
conn.info["current_shard"] = shard_id
.. seealso::