summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2006-02-26 02:25:42 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2006-02-26 02:25:42 +0000
commit770ec1ce7aaadffe6a98ddc581d1b05d2657a2e4 (patch)
tree8c2580115fa9438804815c0587aa047aab1ee600 /lib/sqlalchemy
parent6bdf9e7eb3e2b8736b34598382536a0a6dbc122e (diff)
downloadsqlalchemy-770ec1ce7aaadffe6a98ddc581d1b05d2657a2e4.tar.gz
fixed ticket 72, where a copied clause was using the identical bind param object thereby screwing up a generated statement that included both the original clause and the copied clause, when positional parameters were used
Diffstat (limited to 'lib/sqlalchemy')
-rw-r--r--lib/sqlalchemy/sql.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sqlalchemy/sql.py b/lib/sqlalchemy/sql.py
index 666a9d18c..f88b3118f 100644
--- a/lib/sqlalchemy/sql.py
+++ b/lib/sqlalchemy/sql.py
@@ -616,6 +616,8 @@ class BindParamClause(ClauseElement, CompareMixin):
visitor.visit_bindparam(self)
def _get_from_objects(self):
return []
+ def copy_container(self):
+ return BindParamClause(self.key, self.value, self.shortname, self.type)
def typeprocess(self, value, engine):
return self._get_convert_type(engine).convert_bind_param(value, engine)
def compare(self, other):