diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-11-29 19:06:33 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-11-29 19:06:33 -0500 |
commit | 207fafe7e35b945a41e139b5507a8d73c7b019db (patch) | |
tree | 36a859de332c9d4a94b8333dd18ef29aeb610c06 /lib/sqlalchemy/sql | |
parent | 58fab1be984a42400e67bdf7f15acd5a6d7c4b3c (diff) | |
download | sqlalchemy-207fafe7e35b945a41e139b5507a8d73c7b019db.tar.gz |
- add support for bindparam() called from AsFromText
- get PG dialect to work around "no nonexistent binds" rule for now,
though we might want to reconsider this behavior
Diffstat (limited to 'lib/sqlalchemy/sql')
-rw-r--r-- | lib/sqlalchemy/sql/selectable.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/sqlalchemy/sql/selectable.py b/lib/sqlalchemy/sql/selectable.py index b850e1465..79e341b77 100644 --- a/lib/sqlalchemy/sql/selectable.py +++ b/lib/sqlalchemy/sql/selectable.py @@ -2968,6 +2968,10 @@ class TextAsFrom(SelectBase): def _bind(self): return self.element._bind + @_generative + def bindparams(self, *binds, **bind_as_values): + self.element = self.element.bindparams(*binds, **bind_as_values) + def _populate_column_collection(self): for c in self.column_args: c._make_proxy(self) |