8000 bug #42035 [Messenger] Fix use_notify default value for PostgreSqlCon… · symfony/symfony@9fdc06b · GitHub
[go: up one dir, main page]

Skip to content

Commit 9fdc06b

Browse files
committed
bug #42035 [Messenger] Fix use_notify default value for PostgreSqlConnection (tgalopin)
This PR was merged into the 5.2 branch. Discussion ---------- [Messenger] Fix use_notify default value for PostgreSqlConnection | Q | A | ------------- | --- | Branch? | 5.2 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - I tried to use the use_notify in my DSN with Doctrine and stumbled upon an error. I investigated and from what I see, the option isn't allowed in a DSN due to this line missing in the PostgreSqlConnection class. Commits ------- b2aad4f Fix use_notify default value for PostgreSqlConnection
2 parents 3804ad3 + b2aad4f commit 9fdc06b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Symfony/Component/Messenger/Bridge/Doctrine/Transport/PostgreSqlConnection.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ final class PostgreSqlConnection extends Connection
2828
* * get_notify_timeout: The length of time to wait for a response when calling PDO::pgsqlGetNotify, in milliseconds. Default: 0.
2929
*/
3030
protected const DEFAULT_OPTIONS = parent::DEFAULT_OPTIONS + [
31+
'use_notify' => true,
3132
'check_delayed_interval' => 60000,
3233
'get_notify_timeout' => 0,
3334
];

0 commit comments

Comments
 (0)
0