]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
aaaarrrgg
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 23 Oct 2012 20:02:00 +0000 (16:02 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 23 Oct 2012 20:02:00 +0000 (16:02 -0400)
lib/sqlalchemy/engine/base.py

index eddd446b20ea6bf18cd9b901c0b9fbc980fd6e83..db7bcaaf1fe131bacf60ff8ea61d66ff856d1f95 100644 (file)
@@ -1388,7 +1388,7 @@ class Engine(Connectable, log.Identified):
             from sqlalchemy import event
             from sqlalchemy.engine import Engine
 
-            shards = {"default": "base", shard_1": "db1", "shard_2": "db2"}
+            shards = {"default": "base", shard_1: "db1", "shard_2": "db2"}
 
             @event.listens_for(Engine, "before_cursor_execute")
             def _switch_shard(conn, cursor, stmt, params, context, executemany):