#325895 follow-up by chx: We love PostgreSQL.

merge-requests/26/head
Angie Byron 2008-10-25 02:12:35 +00:00
parent 47949ad142
commit a7481a7cfa
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ class DatabaseConnection_pgsql extends DatabaseConnection {
return $this->query($query . ' LIMIT ' . $count . ' OFFSET ' . $from, $args, $options);
}
public function queryTemporary($query, Array $args, $tablename) {
public function queryTemporary($query, Array $args, $tablename, $options = array()) {
$query = preg_replace('/^SELECT/i', 'CREATE TEMPORARY TABLE ' . $tablename . ' Engine=HEAP SELECT', $this->prefixTables($query));
return $this->query($query, $args, $options);