From 6cdba110a49b701e36f93d82e8772d1909385175 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Fri, 16 Dec 2005 07:18:27 +0000 Subject: factored "sequence" execution in postgres in oracle to be generalized to the SQLEngine, to also allow space for "defaults" that may be constants, python functions, or SQL functions/statements Sequence schema object extends from a more generic "Default" object ANSICompiled can convert positinal params back to a dictionary, but the whole issue of parameters and how the engine executes compiled objects with parameters should be revisited mysql has fixes for its "rowid_column" being hidden else it screws up some query construction, also will not use AUTOINCREMENT unless the column is Integer --- lib/sqlalchemy/sql.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/sqlalchemy/sql.py') diff --git a/lib/sqlalchemy/sql.py b/lib/sqlalchemy/sql.py index 091c60730..86412c2db 100644 --- a/lib/sqlalchemy/sql.py +++ b/lib/sqlalchemy/sql.py @@ -253,7 +253,8 @@ class Compiled(ClauseVisitor): params = [self.get_params(**m) for m in multiparams] else: params = self.get_params(**params) - return self.engine.execute(str(self), params, compiled = self, typemap = self.typemap) + + return self.engine.execute(str(self), params, compiled=self, typemap=self.typemap) def scalar(self, *multiparams, **params): """executes this compiled object via the execute() method, then -- cgit v1.2.1