execute

  1. drupal
    1. drupal7
Versionen
drupal7 public InsertQuery_sqlite::execute()

Verwandte Themen

Code

includes/database/sqlite/query.inc, line 23

<?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

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen