/[drupal]/drupal/includes/database.mysql.inc
ViewVC logotype

Diff of /drupal/includes/database.mysql.inc

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

revision 1.66.2.3 by drumm, Mon Sep 15 06:14:52 2008 UTC revision 1.66.2.4 by drumm, Fri Jul 10 06:09:38 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: database.mysql.inc,v 1.66.2.2 2007/10/19 21:49:26 drumm Exp $  // $Id: database.mysql.inc,v 1.66.2.3 2008/09/15 06:14:52 drumm Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 360  function db_query_temporary($query) { Line 360  function db_query_temporary($query) {
360    $tablename = array_pop($args);    $tablename = array_pop($args);
361    array_shift($args);    array_shift($args);
362    
363    $query = preg_replace('/^SELECT/i', 'CREATE TEMPORARY TABLE '. $tablename .' SELECT', db_prefix_tables($query));    $query = preg_replace('/^SELECT/i', 'CREATE TEMPORARY TABLE '. $tablename .' Engine=HEAP SELECT', db_prefix_tables($query));
364    if (isset($args[0]) and is_array($args[0])) { // 'All arguments in one array' syntax    if (isset($args[0]) and is_array($args[0])) { // 'All arguments in one array' syntax
365      $args = $args[0];      $args = $args[0];
366    }    }

Legend:
Removed from v.1.66.2.3  
changed lines
  Added in v.1.66.2.4

  ViewVC Help
Powered by ViewVC 1.1.3