From 770ec1ce7aaadffe6a98ddc581d1b05d2657a2e4 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sun, 26 Feb 2006 02:25:42 +0000 Subject: 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 --- lib/sqlalchemy/sql.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/sqlalchemy/sql.py') 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): -- cgit v1.2.1