Commit add1b05
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 81d815d commit add1b05
2 files changed
+16
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
128 | 131 | | |
129 | 132 | | |
130 | 133 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4379 | 4379 | | |
4380 | 4380 | | |
4381 | 4381 | | |
4382 | | - | |
4383 | | - | |
4384 | | - | |
4385 | | - | |
| 4382 | + | |
| 4383 | + | |
| 4384 | + | |
| 4385 | + | |
| 4386 | + | |
4386 | 4387 | | |
4387 | 4388 | | |
4388 | 4389 | | |
| |||
4458 | 4459 | | |
4459 | 4460 | | |
4460 | 4461 | | |
4461 | | - | |
| 4462 | + | |
4462 | 4463 | | |
4463 | 4464 | | |
4464 | 4465 | | |
| |||
4492 | 4493 | | |
4493 | 4494 | | |
4494 | 4495 | | |
| 4496 | + | |
| 4497 | + | |
| 4498 | + | |
| 4499 | + | |
| 4500 | + | |
| 4501 | + | |
4495 | 4502 | | |
4496 | 4503 | | |
4497 | 4504 | | |
| |||
0 commit comments