public function DeleteQuery::execute

public DeleteQuery::execute()

Executes the DELETE query.

Return value

The return value is dependent on the database connection.

Overrides Query::execute

File

includes/database/query.inc, line 851
Non-specific Database query code. Used by all engines.

Class

DeleteQuery
General class for an abstracted DELETE operation.

Code

public function execute() {
  $values = array();
  if (count($this->condition)) {
    $this->condition->compile($this->connection, $this);
    $values = $this->condition->arguments();
  }

  return $this->connection->query((string) $this, $values, $this->queryOptions);
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!database!query.inc/function/DeleteQuery::execute/7.x