Projet

Général

Profil

Révision 01dfd3b5

Ajouté par Assos Assos il y a plus de 3 ans

Udpate to 7.77

Voir les différences:

drupal7/includes/database/sqlite/query.inc
23 23
    if (!$this->preExecute()) {
24 24
      return NULL;
25 25
    }
26
    if (count($this->insertFields)) {
26
    if (count($this->insertFields) || !empty($this->fromQuery)) {
27 27
      return parent::execute();
28 28
    }
29 29
    else {
......
36 36
    $comments = $this->connection->makeComment($this->comments);
37 37

  
38 38
    // Produce as many generic placeholders as necessary.
39
    $placeholders = array_fill(0, count($this->insertFields), '?');
39
    $placeholders = array();
40
    if (!empty($this->insertFields)) {
41
      $placeholders = array_fill(0, count($this->insertFields), '?');
42
    }
40 43

  
41 44
    // If we're selecting from a SelectQuery, finish building the query and
42 45
    // pass it back, as any remaining options are irrelevant.

Formats disponibles : Unified diff