From 0baed4225dd43885fdf2b0f94e6ea85b9f421e64 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sat, 23 Jul 2005 20:06:57 +0000 Subject: --- lib/sqlalchemy/sql.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/sqlalchemy/sql.py') diff --git a/lib/sqlalchemy/sql.py b/lib/sqlalchemy/sql.py index 29de0d34f..8f3e51fbd 100644 --- a/lib/sqlalchemy/sql.py +++ b/lib/sqlalchemy/sql.py @@ -136,13 +136,12 @@ class ClauseElement(object): c = self.compile(e, bindparams = params) # TODO: do pre-execute right here, for sequences, if the compiled object # defines it - # TODO: why do we send the params twice, once to compile, once to c.get_params - return e.execute(str(c), c.get_params(**params), echo = getattr(self, 'echo', None)) + return e.execute(str(c), c.get_params(), echo = getattr(self, 'echo', None)) def result(self, **params): e = self._engine() c = self.compile(e, bindparams = params) - return e.result(str(c), c.get_params(**params)) + return e.result(str(c), c.binds) class ColumnClause(ClauseElement): """represents a column clause element in a SQL statement.""" -- cgit v1.2.1