From 151fa4e75ce951e42068b3a5785e06a8ecf4dd44 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sun, 17 Jan 2010 20:43:35 +0000 Subject: statement_options -> execution_options --- lib/sqlalchemy/dialects/postgresql/psycopg2.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/sqlalchemy/dialects/postgresql') diff --git a/lib/sqlalchemy/dialects/postgresql/psycopg2.py b/lib/sqlalchemy/dialects/postgresql/psycopg2.py index 7733aadcd..54283581d 100644 --- a/lib/sqlalchemy/dialects/postgresql/psycopg2.py +++ b/lib/sqlalchemy/dialects/postgresql/psycopg2.py @@ -35,10 +35,10 @@ Transactions The psycopg2 dialect fully supports SAVEPOINT and two-phase commit operations. -Statement options ------------------ +Per-Statement Execution Options +------------------------------- -The following statement options are respected: +The following per-statement execution options are respected: * *stream_results* - Enable or disable usage of server side cursors for the SELECT-statement. If *None* or not set, the *server_side_cursors* option of the connection is used. If @@ -112,7 +112,7 @@ SERVER_SIDE_CURSOR_RE = re.compile( class PostgreSQL_psycopg2ExecutionContext(PGExecutionContext): def create_cursor(self): # TODO: coverage for server side cursors + select.for_update() - stream_results_option = self.statement_options.get('stream_results') + stream_results_option = self.execution_options.get('stream_results') is_server_side = ( # Enabled for this statement ... (stream_results_option or -- cgit v1.2.1