Skip to content

Commit e04088e

Browse files
committed
fix: improve OpenGauss detection to correctly disable UNLISTEN
The previous detection logic was insufficient for standard OpenGauss environments (e.g., A-compatibility or default modes) as it relied on keys like 'sql_mode' which may not exist. Changes: 1. Updated `_detect_server_capabilities` to identify GaussDB/OpenGauss using the core parameter `session_respool`.
1 parent 3ead609 commit e04088e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

async_gaussdb/connection.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2647,8 +2647,6 @@ class _ConnectionProxy:
26472647

26482648

26492649
def _detect_server_capabilities(server_version, connection_settings):
2650-
print(connection_settings)
2651-
print(server_version)
26522650
if hasattr(connection_settings, 'padb_revision'):
26532651
# Amazon Redshift detected.
26542652
advisory_locks = False

0 commit comments

Comments
 (0)