Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e08b410

Browse files
committed
Clarify that PQconninfoParse returns an array with all legal options.
Per discussion with Dmitriy Igrishin and Tom Lane.
1 parent fdf719c commit e08b410

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

doc/src/sgml/libpq.sgml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,8 +1027,10 @@ PQconninfoOption *PQconninfoParse(const char *conninfo, char **errmsg);
10271027
</para>
10281028

10291029
<para>
1030-
Note that only options explicitly specified in the string will have
1031-
values set in the result array; no defaults are inserted.
1030+
All legal options will be present in the result array, but the
1031+
<literal>PQconninfoOption</literal> for any option not present
1032+
in the connection string will have <literal>val</literal> set to
1033+
<literal>NULL</literal>; default values are not inserted.
10321034
</para>
10331035

10341036
<para>

0 commit comments

Comments
 (0)