diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-08-17 18:35:25 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-08-17 18:35:25 -0400 |
| commit | a2468c8a31c8308cdb5740f2401e9dedd003836e (patch) | |
| tree | e4cc3eb17c59f678ea2919ecd0880f1df7854b6e /lib/sqlalchemy/dialects/firebird | |
| parent | 20fa7fe2b85d356e3da08191f01d7528ded42033 (diff) | |
| download | sqlalchemy-a2468c8a31c8308cdb5740f2401e9dedd003836e.tar.gz | |
- [feature] To complement [ticket:2547], types
can now provide "bind expressions" and
"column expressions" which allow compile-time
injection of SQL expressions into statements
on a per-column or per-bind level. This is
to suit the use case of a type which needs
to augment bind- and result- behavior at the
SQL level, as opposed to in the Python level.
Allows for schemes like transparent encryption/
decryption, usage of Postgis functions, etc.
[ticket:1534]
- update postgis example fully.
- still need to repair the result map propagation
here to be transparent for cases like "labeled column".
Diffstat (limited to 'lib/sqlalchemy/dialects/firebird')
| -rw-r--r-- | lib/sqlalchemy/dialects/firebird/base.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/sqlalchemy/dialects/firebird/base.py b/lib/sqlalchemy/dialects/firebird/base.py index ad6dcee54..f7877a901 100644 --- a/lib/sqlalchemy/dialects/firebird/base.py +++ b/lib/sqlalchemy/dialects/firebird/base.py @@ -278,15 +278,11 @@ class FBCompiler(sql.compiler.SQLCompiler): return "" def returning_clause(self, stmt, returning_cols): - columns = [ - self.process( - self.label_select_column(None, c, asfrom=False), - within_columns_clause=True, - result_map=self.result_map - ) + self._label_select_column(None, c, True, False, {}) for c in expression._select_iterables(returning_cols) ] + return 'RETURNING ' + ', '.join(columns) |
