mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
- tackle some usability issues
- fix bug #3147 - added the lock-images made by SHS` - fixed MSSQL errors (adding the correct ESCAPE sequence) git-svn-id: file:///svn/phpbb/trunk@6161 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -32,6 +32,7 @@ if (!defined('SQL_LAYER'))
|
||||
class dbal_firebird extends dbal
|
||||
{
|
||||
var $last_query_text = '';
|
||||
var $service_handle = false;
|
||||
|
||||
/**
|
||||
* Connect to server
|
||||
@@ -45,9 +46,27 @@ class dbal_firebird extends dbal
|
||||
|
||||
$this->db_connect_id = ($this->persistency) ? @ibase_pconnect($this->server . ':' . $this->dbname, $this->user, $sqlpassword, false, false, 3) : @ibase_connect($this->server . ':' . $this->dbname, $this->user, $sqlpassword, false, false, 3);
|
||||
|
||||
/**
|
||||
* @todo evaluate the implications of opening a service connection
|
||||
*/
|
||||
$this->service_handle = @ibase_service_attach($this->server, $this->user, $sqlpassword);
|
||||
|
||||
return ($this->db_connect_id) ? $this->db_connect_id : $this->sql_error('');
|
||||
}
|
||||
|
||||
/**
|
||||
* Version information about used database
|
||||
*/
|
||||
function sql_server_info()
|
||||
{
|
||||
if ($this->service_handle !== false)
|
||||
{
|
||||
return @ibase_server_info($this->service_handle, IBASE_SVC_SERVER_VERSION);
|
||||
}
|
||||
|
||||
return 'Firebird/Interbase';
|
||||
}
|
||||
|
||||
/**
|
||||
* SQL Transaction
|
||||
* @access: private
|
||||
@@ -323,6 +342,11 @@ class dbal_firebird extends dbal
|
||||
*/
|
||||
function _sql_close()
|
||||
{
|
||||
if ($this->service_handle !== false)
|
||||
{
|
||||
@ibase_service_detach($this->service_handle);
|
||||
}
|
||||
|
||||
return @ibase_close($this->db_connect_id);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user