Skip to content

Commit 24c2a63

Browse files
committed
Remove COMMIT
1 parent 548bc6a commit 24c2a63

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/Symfony/Component/Messenger/Bridge/Doctrine/Tests/Transport/PostgreSqlConnectionTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ public function testGetExtraSetupSql()
5959
*/
6060
$this->assertStringContainsString('BEGIN;', $sql);
6161
$this->assertStringContainsString('CREATE TRIGGER', $sql);
62+
63+
// We MUST NOT commit, that will mess with the PDO in PHP 8
64+
$this->assertStringNotContainsString('COMMIT;', $sql);
6265
}
6366

6467
public function testGetExtraSetupSqlWrongTable()

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ private function getTriggerSql(): array
124124
// register trigger
125125
sprintf('DROP TRIGGER IF EXISTS notify_trigger ON %s;', $this->configuration['table_name']),
126126
sprintf('CREATE TRIGGER notify_trigger AFTER INSERT OR UPDATE ON %1$s FOR EACH ROW EXECUTE PROCEDURE notify_%1$s();', $this->configuration['table_name']),
127-
'COMMIT;',
128127
];
129128
}
130129

0 commit comments

Comments
 (0)