From d8547f80cee002cc3f15288997af3284ab12396b Mon Sep 17 00:00:00 2001 From: Charlie Denton Date: Fri, 19 Feb 2021 16:29:49 +0000 Subject: [PATCH] Typo stream_resuls -> stream_results --- lib/sqlalchemy/dialects/mysql/base.py | 2 +- lib/sqlalchemy/dialects/postgresql/base.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sqlalchemy/dialects/mysql/base.py b/lib/sqlalchemy/dialects/mysql/base.py index c80ff3f19a..af35b3279b 100644 --- a/lib/sqlalchemy/dialects/mysql/base.py +++ b/lib/sqlalchemy/dialects/mysql/base.py @@ -282,7 +282,7 @@ Server side cursors are enabled on a per-statement basis by using the option:: with engine.connect() as conn: - result = conn.execution_options(stream_resuls=True).execute(text("select * from table")) + result = conn.execution_options(stream_results=True).execute(text("select * from table")) Note that some kinds of SQL statements may not be supported with server side cursors; generally, only SQL statements that return rows should be diff --git a/lib/sqlalchemy/dialects/postgresql/base.py b/lib/sqlalchemy/dialects/postgresql/base.py index 7e821acde3..3362655528 100644 --- a/lib/sqlalchemy/dialects/postgresql/base.py +++ b/lib/sqlalchemy/dialects/postgresql/base.py @@ -124,7 +124,7 @@ Server side cursors are enabled on a per-statement basis by using the option:: with engine.connect() as conn: - result = conn.execution_options(stream_resuls=True).execute(text("select * from table")) + result = conn.execution_options(stream_results=True).execute(text("select * from table")) Note that some kinds of SQL statements may not be supported with server side cursors; generally, only SQL statements that return rows should be -- 2.47.2