Commits

Mike Bayer committed 604a9e7

slight glitch when the same clause is compiled repeatedly and contains redundant bind parameters...this fix prevents the binds from stepping on each other....

  • Participants
  • Parent commits 499544d

Comments (0)

Files changed (1)

File lib/sqlalchemy/ansisql.py

 
     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