mssql: fixing lastInsertId() implementation
This commit is contained in:
parent
d25c8b43e6
commit
5ecebe211b
1 changed files with 2 additions and 4 deletions
|
@ -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 a new issue