]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
slight glitch when the same clause is compiled repeatedly and contains redundant...
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 12 Feb 2006 06:29:57 +0000 (06:29 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 12 Feb 2006 06:29:57 +0000 (06:29 +0000)
lib/sqlalchemy/ansisql.py

index 3eaed0bc1d48f286f979516e0fee1ffcb3c2e92b..a300dc63925f2086a10123aec63c52b36d3229ec 100644 (file)
@@ -222,7 +222,7 @@ class ANSICompiler(sql.Compiled):
 
     def visit_bindparam(self, bindparam):
         if bindparam.shortname != bindparam.key:
-            self.binds[bindparam.shortname] = bindparam
+            self.binds.setdefault(bindparam.shortname, bindparam)
         count = 1
         key = bindparam.key