Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 31d2b11

Browse files
committed
Expose the default for channel_binding in PQconndefaults().
If there's a static default value for a connection option, it should be shown in the PQconninfoOptions array. Daniele Varrazzo Discussion: https://postgr.es/m/CA+mi_8Zo8Rgn7p+6ZRY7QdDu+23ukT9AvoHNyPbgKACxwgGhZA@mail.gmail.com
1 parent 63d78d1 commit 31d2b11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/interfaces/libpq/fe-connect.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ static const internalPQconninfoOption PQconninfoOptions[] = {
214214
"Database-Password-File", "", 64,
215215
offsetof(struct pg_conn, pgpassfile)},
216216

217-
{"channel_binding", "PGCHANNELBINDING", NULL, NULL,
217+
{"channel_binding", "PGCHANNELBINDING", DefaultChannelBinding, NULL,
218218
"Channel-Binding", "", 8, /* sizeof("require") == 8 */
219219
offsetof(struct pg_conn, channel_binding)},
220220

0 commit comments

Comments
 (0)