function DeleteQuery::execute

Executes the DELETE query.

Return value

int The number of rows affected by the delete query.

Overrides Query::execute

1 call to DeleteQuery::execute()
DeleteQuery_sqlite::execute in includes/database/sqlite/query.inc
Executes the DELETE query.
1 method overrides DeleteQuery::execute()
DeleteQuery_sqlite::execute in includes/database/sqlite/query.inc
Executes the DELETE query.

File

includes/database/query.inc, line 851

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);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.