#325895 follow-up by chx: We love PostgreSQL.
parent
47949ad142
commit
a7481a7cfa
|
@ -82,7 +82,7 @@ class DatabaseConnection_pgsql extends DatabaseConnection {
|
||||||
return $this->query($query . ' LIMIT ' . $count . ' OFFSET ' . $from, $args, $options);
|
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));
|
$query = preg_replace('/^SELECT/i', 'CREATE TEMPORARY TABLE ' . $tablename . ' Engine=HEAP SELECT', $this->prefixTables($query));
|
||||||
|
|
||||||
return $this->query($query, $args, $options);
|
return $this->query($query, $args, $options);
|
||||||
|
|
Loading…
Reference in New Issue