1
0
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:
Paul S. Owen 2001-11-09 13:42:31 +00:00
parent 4e0ec70803
commit 63fbbff7e7
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;