mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/8071] Make nextid alias of sql_last_inserted_id and add deprecation
PHPBB3-8071
This commit is contained in:
@@ -271,9 +271,9 @@ class mssqlnative extends \phpbb\db\driver\mssql_base
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
function sql_nextid()
|
||||
public function sql_last_inserted_id()
|
||||
{
|
||||
$result_id = @sqlsrv_query($this->db_connect_id, 'SELECT @@IDENTITY');
|
||||
|
||||
@@ -290,14 +290,6 @@ class mssqlnative extends \phpbb\db\driver\mssql_base
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function sql_last_inserted_id()
|
||||
{
|
||||
return $this->sql_nextid();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
|
Reference in New Issue
Block a user