mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00: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
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue