Skip to content

Commit 1f8d22f

Browse files
authored
Merge pull request #65 from artemeon/fix/#19892-postgres-discard-flush
execute DISCARD ALL only outside of a transaction
2 parents 2293ce3 + c7e353f commit 1f8d22f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Driver/PostgresDriver.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,8 @@ public function getSubstringExpression(string $value, int $offset, ?int $length)
608608
*/
609609
public function flushQueryCache(): void
610610
{
611-
$this->_pQuery('DISCARD ALL', []);
611+
// s. https://www.postgresql.org/docs/current/sql-deallocate.html
612+
$this->_pQuery('DEALLOCATE ALL', []);
612613

613614
parent::flushQueryCache();
614615
}

0 commit comments

Comments
 (0)