]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
tweaks
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 23 Oct 2012 18:22:56 +0000 (14:22 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 23 Oct 2012 18:22:56 +0000 (14:22 -0400)
doc/build/changelog/changelog_08.rst
lib/sqlalchemy/engine/base.py

index d5ac10f10349ee12f0cd04512352f9907b4ea446..c741cdda9927a565e2166bde245e2cf0ddca65f1 100644 (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
index bdb1a0004eb1f9ab893edf2527e8d883d56bb265..eddd446b20ea6bf18cd9b901c0b9fbc980fd6e83 100644 (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::