From: Thomas Mueller Date: Sat, 2 Nov 2013 19:21:19 +0000 (+0100) Subject: mssql: fixing lastInsertId() implementation X-Git-Tag: v6.0.0beta3~12^2~5 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5ecebe211bce490aa776ad3f3cc9e8a5b2088b6f;p=nextcloud-server.git mssql: fixing lastInsertId() implementation --- diff --git a/lib/private/db/adaptersqlsrv.php b/lib/private/db/adaptersqlsrv.php index d0a67af28a7..88fa2fc9f9e 100644 --- a/lib/private/db/adaptersqlsrv.php +++ b/lib/private/db/adaptersqlsrv.php @@ -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) {