mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-04 21:44:57 +02:00
Various updates to transaction and other support
git-svn-id: file:///svn/phpbb/trunk@1298 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
4e0ec70803
commit
63fbbff7e7
@ -243,6 +243,7 @@ class sql_db
|
||||
if($transaction == END_TRANSACTION)
|
||||
{
|
||||
$result = mssql_query("COMMIT", $this->db_connect_id);
|
||||
$this->in_transaction = FALSE;
|
||||
}
|
||||
|
||||
return $this->query_result;
|
||||
|
@ -41,8 +41,7 @@ class sql_db
|
||||
//
|
||||
function sql_db($sqlserver, $sqluser, $sqlpassword, $database, $persistency = true)
|
||||
{
|
||||
|
||||
if(eregi("^([[:alnum:]]+):([[:alnum:]]+)$", $sqlserver, $db_type))
|
||||
if( preg_match("/^(.*?):(.*?)$/i", $sqlserver, $db_type) )
|
||||
{
|
||||
$this->persistency = $persistency;
|
||||
$this->user = $sqluser;
|
||||
|
Loading…
x
Reference in New Issue
Block a user