Projet

Général

Profil

0001-sql-use-dbname-parameter-for-connecting-to-database-.patch

Frédéric Péters, 23 octobre 2021 20:49

Télécharger (855 octets)

Voir les différences:

Subject: [PATCH] sql: use dbname parameter for connecting to database (#33589)

 wcs/sql.py | 2 ++
 1 file changed, 2 insertions(+)
wcs/sql.py
374 374
        for param in ('database', 'user', 'password', 'host', 'port'):
375 375
            value = get_cfg('postgresql', {}).get(param)
376 376
            if value:
377
                if param == 'database':
378
                    param = 'dbname'
377 379
                postgresql_cfg[param] = value
378 380
        try:
379 381
            pgconn = psycopg2.connect(**postgresql_cfg)
380
-