]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
disable "bytes" handler for all drivers other than psycopg2
authorJ. Nick Koston <nick@koston.org>
Tue, 25 Apr 2023 02:32:17 +0000 (22:32 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 25 Apr 2023 14:20:36 +0000 (10:20 -0400)
commit188cb4226ac7b337446689ab3498b4397d0b7d2d
treebdd19819afc3daf710db47f536c1e2f3d6d9e855
parent32a17e60ba63f0278a754e1ab7e9ebf9460e07c5
disable "bytes" handler for all drivers other than psycopg2

Improved row processing performance for "binary" datatypes by making the
"bytes" handler conditional on a per driver basis.  As a result, the
"bytes" result handler has been disabled for nearly all drivers other than
psycopg2, all of which in modern forms support returning Python "bytes"
directly.  Pull request courtesy J. Nick Koston.

Fixes: #9680
Closes: #9681
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/9681
Pull-request-sha: 4f2fd88bd9af54c54438a3b72a2f30384b0f8898

Change-Id: I394bdcbebaab272e63b13cc02f60813b7aa76839
doc/build/changelog/unreleased_20/9680.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/mssql/base.py
lib/sqlalchemy/dialects/mysql/base.py
lib/sqlalchemy/dialects/oracle/base.py
lib/sqlalchemy/dialects/postgresql/base.py
lib/sqlalchemy/dialects/postgresql/psycopg2.py
lib/sqlalchemy/dialects/sqlite/pysqlite.py
lib/sqlalchemy/engine/default.py
lib/sqlalchemy/engine/interfaces.py
lib/sqlalchemy/sql/sqltypes.py
lib/sqlalchemy/testing/suite/test_types.py