mirror of
https://github.com/nextcloud/server.git
synced 2025-10-26 19:21:34 +00:00
mssql: fixing lastInsertId() implementation
This commit is contained in:
parent
d25c8b43e6
commit
5ecebe211b
@ -11,10 +11,8 @@ namespace OC\DB;
|
||||
|
||||
class AdapterSQLSrv extends Adapter {
|
||||
public function lastInsertId($table) {
|
||||
if($table !== null) {
|
||||
$table = $this->conn->replaceTablePrefix( $table );
|
||||
}
|
||||
return $this->conn->lastInsertId($table);
|
||||
|
||||
return $this->conn->realLastInsertId($table);
|
||||
}
|
||||
|
||||
public function fixupStatement($statement) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user