]> 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:40 +0000 (11:25 -0500)
commit7bfb829f25c1bfe2139afe7875882298aaf345ba
tree197fe1581c598de4364538daea10ec01c5f0f9ae
parentb0d9d5a44cdd5632d209149a6a6622073acee3da
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
doc/build/changelog/unreleased_20/12220.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/postgresql/asyncpg.py
test/dialect/postgresql/test_dialect.py