forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitadd1b05
committed
Allow "dbname" from connection string to be overridden in PQconnectDBParams
If the "dbname" attribute in PQconnectDBParams contained a connection stringor URI (and expand_dbname = TRUE), the database name from the connectionstring could not be overridden by a subsequent "dbname" keyword in thearray. That was not intentional; all other options can be overridden.Furthermore, any subsequent "dbname" caused the connection string from thefirst dbname value to be processed again, overriding any values for the sameoptions that were given between the connection string and the second dbnameoption.In the passing, clarify in the docs that only the first dbname option in thearray is parsed as a connection string.Alex Shulgin. Backpatch to all supported versions.1 parent81d815d commitadd1b05
2 files changed
+16
-6
lines changedLines changed: 4 additions & 1 deletion
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 |
| |
|
Lines changed: 12 additions & 5 deletions
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
Comments
(0)