Commit 95be343
committed
Allow "dbname" from connection string to be overridden in PQconnectDBParams
If the "dbname" attribute in PQconnectDBParams contained a connection string
or URI (and expand_dbname = TRUE), the database name from the connection
string could not be overridden by a subsequent "dbname" keyword in the
array. That was not intentional; all other options can be overridden.
Furthermore, any subsequent "dbname" caused the connection string from the
first dbname value to be processed again, overriding any values for the same
options that were given between the connection string and the second dbname
option.
In the passing, clarify in the docs that only the first dbname option in the
array is parsed as a connection string.
Alex Shulgin. Backpatch to all supported versions.1 parent 5053ad2 commit 95be343
1 file changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4460 | 4460 | | |
4461 | 4461 | | |
4462 | 4462 | | |
4463 | | - | |
4464 | | - | |
4465 | | - | |
| 4463 | + | |
| 4464 | + | |
| 4465 | + | |
4466 | 4466 | | |
4467 | 4467 | | |
4468 | 4468 | | |
| |||
4494 | 4494 | | |
4495 | 4495 | | |
4496 | 4496 | | |
| 4497 | + | |
| 4498 | + | |
| 4499 | + | |
| 4500 | + | |
| 4501 | + | |
| 4502 | + | |
4497 | 4503 | | |
4498 | 4504 | | |
4499 | 4505 | | |
| |||
0 commit comments