pgadmin4/web/pgadmin/utils/driver
Jørgen H. Fjeld 402ddafa2a
Fix sslsni boolean to integer conversion for libpq compatibility
The sslsni connection parameter was being stored as a boolean (true/false)
in the database, but libpq expects integer values (1/0) for this parameter.
When a boolean value was passed to libpq, it resulted in SSL connection
failures with 'unexpected eof while reading' errors.

This fix converts boolean connection parameters (sslcompression, sslsni) to
integers when creating the connection string in server_manager.py, ensuring
libpq receives the expected integer format.

Fixes connection issues when using PGSSLSNI=1 with PostgreSQL 14+ servers.
2026-01-14 12:31:36 +05:30
..
psycopg3 Fix sslsni boolean to integer conversion for libpq compatibility 2026-01-14 12:31:36 +05:30
__init__.py Copyright updated for 2026 2026-01-05 13:33:45 +05:30
abstract.py Copyright updated for 2026 2026-01-05 13:33:45 +05:30
registry.py Copyright updated for 2026 2026-01-05 13:33:45 +05:30