/**
  * For INSERT, UPDATE and DELETE queries
  *
  * @param $sql the query string
  *
  * @return boolean true if success
  */
 public function update($sql, $params = array())
 {
     $result = $this->da->query($sql, $params);
     if ($error = $result->isError()) {
         $trace = debug_backtrace();
         $i = isset($trace[1]) ? 1 : 0;
         trigger_error($error . ' ==> ' . $sql . " @@ " . $trace[$i]['file'] . ' at line ' . $trace[$i]['line']);
         return false;
     } else {
         return true;
     }
 }
 /**
  * For INSERT, UPDATE and DELETE queries
  *
  * @param $sql the query string
  * @throws DataAccessQueryException
  *
  * @return boolean true if success
  */
 public function update($sql, $params = array())
 {
     $result = $this->da->query($sql, $params);
     return $this->handleError($result, $sql);
 }