diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-02-12 06:29:57 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-02-12 06:29:57 +0000 |
commit | 703908caadfc2cb763e2838e4886074aef32c294 (patch) | |
tree | 7ac7dc90c2f2c71df311f19d3b51568774e77269 /lib/sqlalchemy/ansisql.py | |
parent | a41b19a3d7fbe4581830ea09d74825d8637f193e (diff) | |
download | sqlalchemy-703908caadfc2cb763e2838e4886074aef32c294.tar.gz |
slight glitch when the same clause is compiled repeatedly and contains redundant bind parameters...this fix prevents the binds from stepping on each other....
Diffstat (limited to 'lib/sqlalchemy/ansisql.py')
-rw-r--r-- | lib/sqlalchemy/ansisql.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/ansisql.py b/lib/sqlalchemy/ansisql.py index 3eaed0bc1..a300dc639 100644 --- a/lib/sqlalchemy/ansisql.py +++ b/lib/sqlalchemy/ansisql.py @@ -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 |