summaryrefslogtreecommitdiffstats
path: root/system/database/drivers/postgre/postgre_driver.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-05-09 09:24:14 +0200
committerAndrey Andreev <narf@devilix.net>2014-05-09 09:24:14 +0200
commit2bbbd1a13ead097fd3f4b00bfb275f0b0f836f93 (patch)
tree9a1615f486dac1502c024d8fcd57e066a875b4a2 /system/database/drivers/postgre/postgre_driver.php
parent81b6efa76b90e28c87d1efad50dc13c2ac462ca8 (diff)
Remove (most of) error suppression from database drivers (issue #3036)
Diffstat (limited to 'system/database/drivers/postgre/postgre_driver.php')
-rw-r--r--system/database/drivers/postgre/postgre_driver.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/system/database/drivers/postgre/postgre_driver.php b/system/database/drivers/postgre/postgre_driver.php
index 6a2209755..c380a7c49 100644
--- a/system/database/drivers/postgre/postgre_driver.php
+++ b/system/database/drivers/postgre/postgre_driver.php
@@ -233,7 +233,7 @@ class CI_DB_postgre_driver extends CI_DB {
*/
protected function _execute($sql)
{
- return @pg_query($this->conn_id, $sql);
+ return pg_query($this->conn_id, $sql);
}
// --------------------------------------------------------------------
@@ -257,7 +257,7 @@ class CI_DB_postgre_driver extends CI_DB {
// even if the queries produce a successful result.
$this->_trans_failure = ($test_mode === TRUE);
- return (bool) @pg_query($this->conn_id, 'BEGIN');
+ return (bool) pg_query($this->conn_id, 'BEGIN');
}
// --------------------------------------------------------------------
@@ -275,7 +275,7 @@ class CI_DB_postgre_driver extends CI_DB {
return TRUE;
}
- return (bool) @pg_query($this->conn_id, 'COMMIT');
+ return (bool) pg_query($this->conn_id, 'COMMIT');
}
// --------------------------------------------------------------------
@@ -293,7 +293,7 @@ class CI_DB_postgre_driver extends CI_DB {
return TRUE;
}
- return (bool) @pg_query($this->conn_id, 'ROLLBACK');
+ return (bool) pg_query($this->conn_id, 'ROLLBACK');
}
// --------------------------------------------------------------------
@@ -355,7 +355,7 @@ class CI_DB_postgre_driver extends CI_DB {
*/
public function affected_rows()
{
- return @pg_affected_rows($this->result_id);
+ return pg_affected_rows($this->result_id);
}
// --------------------------------------------------------------------
@@ -632,7 +632,7 @@ class CI_DB_postgre_driver extends CI_DB {
*/
protected function _close()
{
- @pg_close($this->conn_id);
+ pg_close($this->conn_id);
}
}