/[drupal]/contributions/modules/boost/boost.module
ViewVC logotype

Diff of /contributions/modules/boost/boost.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.3.2.2.2.5.2.247, Fri Nov 13 23:07:32 2009 UTC revision 1.3.2.2.2.5.2.248, Fri Nov 13 23:10:07 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: boost.module,v 1.3.2.2.2.5.2.246 2009/11/11 08:14:03 mikeytown2 Exp $  // $Id: boost.module,v 1.3.2.2.2.5.2.247 2009/11/13 23:07:32 mikeytown2 Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 3482  function boost_db_insert_multi($table, $ Line 3482  function boost_db_insert_multi($table, $
3482    }    }
3483    // Build the fields part of this query    // Build the fields part of this query
3484    $fields = implode(', ', $fields);    $fields = implode(', ', $fields);
3485    $query = "INSERT INTO {$table} ($fields) VALUES $v";    $query = "INSERT INTO {" . $table . "} ($fields) VALUES $v";
3486    // Run the query    // Run the query
3487    if ($suppress) {    if ($suppress) {
3488      return @db_query($query, $data);      return @db_query($query, $data);
# Line 3518  function boost_db_delete_in_multi($table Line 3518  function boost_db_delete_in_multi($table
3518      $in .= ', ' . $placeholder;      $in .= ', ' . $placeholder;
3519    }    }
3520    // Build the query    // Build the query
3521    $query = "DELETE FROM {$table} WHERE $field IN ($in)";    $query = "DELETE FROM {" . $table . "} WHERE $field IN ($in)";
3522    // Run the query    // Run the query
3523    return db_query($query, $data);    return db_query($query, $data);
3524  }  }
# Line 3558  function boost_db_update_set_multi($tabl Line 3558  function boost_db_update_set_multi($tabl
3558      $in .= ', ' . $where_placeholder;      $in .= ', ' . $where_placeholder;
3559    }    }
3560    // Build the query    // Build the query
3561    $query = "UPDATE {$table} SET $set_field = $set_placeholders WHERE $where_field IN ($in)";    $query = "UPDATE {" . $table . "} SET $set_field = $set_placeholders WHERE $where_field IN ($in)";
3562    // Add the set value to the top of the array    // Add the set value to the top of the array
3563    array_unshift($data, $set_value);    array_unshift($data, $set_value);
3564    // Run the query    // Run the query
# Line 3592  function boost_db_select_in_multi($table Line 3592  function boost_db_select_in_multi($table
3592      $in .= ', ' . $placeholder;      $in .= ', ' . $placeholder;
3593    }    }
3594    // Build the query    // Build the query
3595    $query = "SELECT * FROM {$table} WHERE $field IN ($in)";    $query = "SELECT * FROM {" . $table . "} WHERE $field IN ($in)";
3596    // Run the query    // Run the query
3597    return db_query($query, $data);    return db_query($query, $data);
3598  }  }

Legend:
Removed from v.1.3.2.2.2.5.2.247  
changed lines
  Added in v.1.3.2.2.2.5.2.248

  ViewVC Help
Powered by ViewVC 1.1.2