Skip to content

Commit 82e37fd

Browse files
committed
refactor: if pg_query() returns an object, _close returns true
1 parent 5f482d1 commit 82e37fd

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
@@ -103,7 +103,7 @@ public function _getResult()
103103
*/
104104
protected function _close(): bool
105105
{
106-
return (bool) pg_query($this->db->connID, 'DEALLOCATE "' . $this->db->escapeIdentifiers($this->name) . '"');
106+
return pg_query($this->db->connID, 'DEALLOCATE "' . $this->db->escapeIdentifiers($this->name) . '"') !== false;
107107
}
108108

109109
/**

0 commit comments

Comments
 (0)