| Versionen | |
|---|---|
| drupal7 | public InsertQuery_sqlite::execute() |
includes/
<?php
public function execute() {
if (count($this->insertFields) + count($this->defaultFields) == 0) {
return NULL;
}
// Don't execute query without values.
if (!isset($this->insertValues[0]) && count($this->insertFields) > 0) {
return NULL;
}
if (count($this->insertFields)) {
return parent::execute();
}
else {
return $this->connection->query('INSERT INTO {' . $this->table . '} DEFAULT VALUES', array(), $this->queryOptions);
}
}
?>
Kommentare
Kommentar hinzufügen