Skip to content

Commit a4e2442

Browse files
committed
fix: escape identifier for Postgre's DEALLOCATE statement
1 parent 139a04e commit a4e2442

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
@@ -100,7 +100,7 @@ public function _close(): bool
100100
{
101101
$error = true;
102102
if (isset($this->statement)) {
103-
$error = (bool) pg_query($this->db->connID, 'DEALLOCATE ' . $this->name);
103+
$error = (bool) pg_query($this->db->connID, 'DEALLOCATE "' . $this->db->escapeIdentifiers($this->name) . '"');
104104
unset($this->statement);
105105
}
106106

0 commit comments

Comments
 (0)