Skip to content

Commit 3bd2a24

Browse files
committed
fix: escape identifier for Postgre's DEALLOCATE statement
1 parent 5ab7688 commit 3bd2a24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/Database/Postgre/PreparedQuery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function _close(): bool
105105
{
106106
$error = true;
107107
if (isset($this->statement)) {
108-
$error = (bool) pg_query($this->db->connID, 'DEALLOCATE ' . $this->name);
108+
$error = (bool) pg_query($this->db->connID, 'DEALLOCATE "' . $this->db->escapeIdentifiers($this->name) . '"');
109109
unset($this->statement);
110110
}
111111

0 commit comments

Comments
 (0)