]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Asyncpg null query fix
authorCommanderKeynes <andrewjackson947@gmail.coma>
Tue, 7 Jan 2025 15:52:36 +0000 (10:52 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 7 Jan 2025 16:25:52 +0000 (11:25 -0500)
commit0a407f053ad7890906cf4f8e734839c6d2e479a4
treea258ffd06250ccf6d9a4dcd75cd7015b1bcedb69
parenta89b9729650d3cdbce1704e7159d8ac3b32f4f4b
Asyncpg null query fix

Adjusted the asyncpg dialect so that an empty SQL string, which is valid
for PostgreSQL server, may be successfully processed at the dialect level,
such as when using :meth:`.Connection.exec_driver_sql`. Pull request
courtesy Andrew Jackson.

Closes: #12220
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/12220
Pull-request-sha: 45c94febee66b567040b1fbfa3a93079a1314f09

Change-Id: I870df9e31f4a229939e76c702724c25073329282
(cherry picked from commit 7bfb829f25c1bfe2139afe7875882298aaf345ba)
doc/build/changelog/unreleased_20/12220.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/postgresql/asyncpg.py
test/dialect/postgresql/test_dialect.py