mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/12829] Remove check for pgsql 8.3/8.2
Remove check for pgsql 8.3/8.2 and set multi_insert to true. PHPBB3-12829
This commit is contained in:
parent
80f8c550f9
commit
b08497f66c
1 changed files with 2 additions and 6 deletions
|
@ -15,10 +15,11 @@ namespace phpbb\db\driver;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PostgreSQL Database Abstraction Layer
|
* PostgreSQL Database Abstraction Layer
|
||||||
* Minimum Requirement is Version 7.3+
|
* Minimum Requirement is Version 8.3+
|
||||||
*/
|
*/
|
||||||
class postgres extends \phpbb\db\driver\driver
|
class postgres extends \phpbb\db\driver\driver
|
||||||
{
|
{
|
||||||
|
var $multi_insert = true;
|
||||||
var $last_query_text = '';
|
var $last_query_text = '';
|
||||||
var $connect_error = '';
|
var $connect_error = '';
|
||||||
|
|
||||||
|
@ -101,11 +102,6 @@ class postgres extends \phpbb\db\driver\driver
|
||||||
|
|
||||||
if ($this->db_connect_id)
|
if ($this->db_connect_id)
|
||||||
{
|
{
|
||||||
if (version_compare($this->sql_server_info(true), '8.2', '>='))
|
|
||||||
{
|
|
||||||
$this->multi_insert = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($schema !== '')
|
if ($schema !== '')
|
||||||
{
|
{
|
||||||
@pg_query($this->db_connect_id, 'SET search_path TO ' . $schema);
|
@pg_query($this->db_connect_id, 'SET search_path TO ' . $schema);
|
||||||
|
|
Loading…
Add table
Reference in a new issue