mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-12 18:45:20 +02:00
- oopsie
git-svn-id: file:///svn/phpbb/trunk@5794 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
03b9af1f28
commit
1149fd2ca8
@ -317,10 +317,21 @@ class dbal_mssql extends dbal
|
|||||||
*/
|
*/
|
||||||
function _sql_error()
|
function _sql_error()
|
||||||
{
|
{
|
||||||
return array(
|
|
||||||
|
$error = array(
|
||||||
'message' => @mssql_get_last_message($this->db_connect_id),
|
'message' => @mssql_get_last_message($this->db_connect_id),
|
||||||
'code' => @mssql_query("SELECT @@ERROR", $this->db_connect_id)
|
'code' => ''
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$result_id = @mssql_query('SELECT @@ERROR as errno', $this->db_connect_id);
|
||||||
|
if ($result_id)
|
||||||
|
{
|
||||||
|
$row = @mssql_fetch_assoc($result_id);
|
||||||
|
$error['code'] = $row['errno'];
|
||||||
|
@mssql_free_result($result_id);
|
||||||
|
}
|
||||||
|
|
||||||
|
return $error;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user