summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/postgresql/psycopg2.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2010-01-17 20:43:35 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2010-01-17 20:43:35 +0000
commit151fa4e75ce951e42068b3a5785e06a8ecf4dd44 (patch)
tree8b3958e357e37192fe4c233fa181e35ccc63096a /lib/sqlalchemy/dialects/postgresql/psycopg2.py
parent2b1937a31e5b5d8de56f266ec7692a3d0dd90976 (diff)
downloadsqlalchemy-151fa4e75ce951e42068b3a5785e06a8ecf4dd44.tar.gz
statement_options -> execution_options
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/psycopg2.py')
-rw-r--r--lib/sqlalchemy/dialects/postgresql/psycopg2.py8
1 files changed, 4 insertions, 4 deletions
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