summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/engine/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/engine/base.py')
-rw-r--r--lib/sqlalchemy/engine/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/engine/base.py b/lib/sqlalchemy/engine/base.py
index bdb1a0004..eddd446b2 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::