Skip to content

Commit

Permalink
Merge pull request #675 from cybertec-postgresql/674-invalid-target-s…
Browse files Browse the repository at this point in the history
…ession-attrs-webui

[-] fix invalid `target_session_attrs` value in WebUI URI, fixes #674
  • Loading branch information
pashagolub committed Aug 18, 2023
2 parents 6125755 + f315e93 commit 660ed95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webpy/datadb.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def setConnectionString(host, port, dbname, username, password, require_ssl=Fals
dbname,
username,
'' if password == '' else f'password={password}',
'' if psycopg2.__libpq_version__ < 100000 else 'target_session_attrs="read-write"',
'' if psycopg2.__libpq_version__ < 100000 else 'target_session_attrs=read-write',
connect_timeout,
'' if not require_ssl else 'sslmode=require')

Expand Down

0 comments on commit 660ed95

Please sign in to comment.