Remove (most of) error suppression from database drivers (issue #3036)
diff --git a/system/database/drivers/sqlite/sqlite_driver.php b/system/database/drivers/sqlite/sqlite_driver.php
index dd9e1e8..a5dd6e0 100644
--- a/system/database/drivers/sqlite/sqlite_driver.php
+++ b/system/database/drivers/sqlite/sqlite_driver.php
@@ -102,8 +102,8 @@
protected function _execute($sql)
{
return $this->is_write_type($sql)
- ? @sqlite_exec($this->conn_id, $sql)
- : @sqlite_query($this->conn_id, $sql);
+ ? sqlite_exec($this->conn_id, $sql)
+ : sqlite_query($this->conn_id, $sql);
}
// --------------------------------------------------------------------
@@ -203,7 +203,7 @@
*/
public function insert_id()
{
- return @sqlite_last_insert_rowid($this->conn_id);
+ return sqlite_last_insert_rowid($this->conn_id);
}
// --------------------------------------------------------------------
@@ -345,7 +345,7 @@
*/
protected function _close()
{
- @sqlite_close($this->conn_id);
+ sqlite_close($this->conn_id);
}
}