mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +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:
@@ -243,6 +243,7 @@ class sql_db
|
|||||||
if($transaction == END_TRANSACTION)
|
if($transaction == END_TRANSACTION)
|
||||||
{
|
{
|
||||||
$result = mssql_query("COMMIT", $this->db_connect_id);
|
$result = mssql_query("COMMIT", $this->db_connect_id);
|
||||||
|
$this->in_transaction = FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->query_result;
|
return $this->query_result;
|
||||||
|
@@ -41,8 +41,7 @@ class sql_db
|
|||||||
//
|
//
|
||||||
function sql_db($sqlserver, $sqluser, $sqlpassword, $database, $persistency = true)
|
function sql_db($sqlserver, $sqluser, $sqlpassword, $database, $persistency = true)
|
||||||
{
|
{
|
||||||
|
if( preg_match("/^(.*?):(.*?)$/i", $sqlserver, $db_type) )
|
||||||
if(eregi("^([[:alnum:]]+):([[:alnum:]]+)$", $sqlserver, $db_type))
|
|
||||||
{
|
{
|
||||||
$this->persistency = $persistency;
|
$this->persistency = $persistency;
|
||||||
$this->user = $sqluser;
|
$this->user = $sqluser;
|
||||||
|
Reference in New Issue
Block a user