From: Mike Bayer Date: Tue, 23 Oct 2012 18:22:56 +0000 (-0400) Subject: tweaks X-Git-Tag: rel_0_8_0b1~28 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4fe170332201ac02d303ec6c404ffa8b5beddbb5;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git tweaks --- diff --git a/doc/build/changelog/changelog_08.rst b/doc/build/changelog/changelog_08.rst index d5ac10f103..c741cdda99 100644 --- a/doc/build/changelog/changelog_08.rst +++ b/doc/build/changelog/changelog_08.rst @@ -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 diff --git a/lib/sqlalchemy/engine/base.py b/lib/sqlalchemy/engine/base.py index bdb1a0004e..eddd446b20 100644 --- a/lib/sqlalchemy/engine/base.py +++ b/lib/sqlalchemy/engine/base.py @@ -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::