mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/10057] Fixed wrong usage of sql_error again, in firebird.
This necessitates adding connect_error property to firebird. PHPBB3-10057
This commit is contained in:
parent
e5aa2c9ac1
commit
7acbf98692
1 changed files with 5 additions and 2 deletions
|
@ -28,6 +28,7 @@ class dbal_firebird extends dbal
|
||||||
var $last_query_text = '';
|
var $last_query_text = '';
|
||||||
var $service_handle = false;
|
var $service_handle = false;
|
||||||
var $affected_rows = 0;
|
var $affected_rows = 0;
|
||||||
|
var $connect_error = '';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Connect to server
|
* Connect to server
|
||||||
|
@ -57,7 +58,8 @@ class dbal_firebird extends dbal
|
||||||
{
|
{
|
||||||
if (!function_exists('ibase_pconnect'))
|
if (!function_exists('ibase_pconnect'))
|
||||||
{
|
{
|
||||||
return $this->sql_error('ibase_pconnect function does not exist, is interbase extension installed?');
|
$this->connect_error = 'ibase_pconnect function does not exist, is interbase extension installed?';
|
||||||
|
return $this->sql_error('');
|
||||||
}
|
}
|
||||||
$this->db_connect_id = @ibase_pconnect($use_database, $this->user, $sqlpassword, false, false, 3);
|
$this->db_connect_id = @ibase_pconnect($use_database, $this->user, $sqlpassword, false, false, 3);
|
||||||
}
|
}
|
||||||
|
@ -65,7 +67,8 @@ class dbal_firebird extends dbal
|
||||||
{
|
{
|
||||||
if (!function_exists('ibase_connect'))
|
if (!function_exists('ibase_connect'))
|
||||||
{
|
{
|
||||||
return $this->sql_error('ibase_connect function does not exist, is interbase extension installed?');
|
$this->connect_error = 'ibase_connect function does not exist, is interbase extension installed?';
|
||||||
|
return $this->sql_error('');
|
||||||
}
|
}
|
||||||
$this->db_connect_id = @ibase_connect($use_database, $this->user, $sqlpassword, false, false, 3);
|
$this->db_connect_id = @ibase_connect($use_database, $this->user, $sqlpassword, false, false, 3);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue