1. Daniel Miller
  2. sqlalchemy

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
  • Branches default

Comments (0)

Files changed (1)

File lib/sqlalchemy/ansisql.py

View file
 
     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