summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2005-07-23 20:06:57 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2005-07-23 20:06:57 +0000
commit0baed4225dd43885fdf2b0f94e6ea85b9f421e64 (patch)
treed38703f2a4465a569529b322cd3a7d8776e7aa41 /lib/sqlalchemy/sql.py
parent5a77af7c24d6d6c52b16859c36bb433428fe93ce (diff)
downloadsqlalchemy-0baed4225dd43885fdf2b0f94e6ea85b9f421e64.tar.gz
Diffstat (limited to 'lib/sqlalchemy/sql.py')
-rw-r--r--lib/sqlalchemy/sql.py5
1 files changed, 2 insertions, 3 deletions
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."""