示例#1
0
 /**
  * Delete
  *
  * Compiles a delete string and runs the query
  *
  * @param string $where
  * @param null   $limit
  * @param bool   $reset_data
  * @param bool   $returnSQL
  *
  * @return mixed
  * @throws DatabaseException
  * @internal param the $mixed where clause
  * @internal param the $mixed limit clause
  * @internal param $bool
  *
  */
 public function delete($where = '', $limit = null, $reset_data = true, $returnSQL = false)
 {
     if (!empty($limit) || !empty($this->QBLimit)) {
         throw new DatabaseException('PostgreSQL does not allow LIMITs on DELETE queries.');
     }
     return parent::delete($where, $limit, $reset_data, $returnSQL);
 }