diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-09-13 10:36:16 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-09-13 13:06:02 -0400 |
commit | 25b8e89d3d425656e51438b5cac7e6e1f2592817 (patch) | |
tree | 66d2b0c07245f084ad4058c35c502d51332fd192 /lib/sqlalchemy/dialects/postgresql/asyncpg.py | |
parent | a4bfde4a18e50d93e44aec5c6216be8a6f9fbacb (diff) | |
download | sqlalchemy-25b8e89d3d425656e51438b5cac7e6e1f2592817.tar.gz |
Deprecate engine-wise ss cursors; repair mariadbconnector
The server_side_cursors engine-wide feature relies upon
regexp parsing of statements a well as general guessing as
to when the feature should be used. This is not within the
2.0 way of doing things and should be removed.
Additionally, mariadbconnector defaults to unbuffered cursors;
add new cursor hooks so that mariadbconnector can specify
buffered or unbuffered cursors without too much difficulty.
This will also correctly default mariadbconnector to buffered
cursors which should repair the segfaults we've been getting.
Try to restore the assert_raises that was removed in
5b6dfc0c38bf1f01da4b8 to see if mariadbconnector segfaults
are resolved.
Change-Id: I77f1c972c742e40694972f578140bb0cac8c39eb
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/asyncpg.py')
-rw-r--r-- | lib/sqlalchemy/dialects/postgresql/asyncpg.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/asyncpg.py b/lib/sqlalchemy/dialects/postgresql/asyncpg.py index eb87249b4..780e23844 100644 --- a/lib/sqlalchemy/dialects/postgresql/asyncpg.py +++ b/lib/sqlalchemy/dialects/postgresql/asyncpg.py @@ -723,10 +723,6 @@ class PGDialect_asyncpg(PGDialect): }, ) - def __init__(self, server_side_cursors=False, **kwargs): - PGDialect.__init__(self, **kwargs) - self.server_side_cursors = server_side_cursors - @util.memoized_property def _dbapi_version(self): if self.dbapi and hasattr(self.dbapi, "__version__"): |