]> source.dussan.org Git - nextcloud-server.git/commitdiff
mssql: fixing lastInsertId() implementation
authorThomas Mueller <thomas.mueller@tmit.eu>
Sat, 2 Nov 2013 19:21:19 +0000 (20:21 +0100)
committerThomas Mueller <thomas.mueller@tmit.eu>
Sat, 2 Nov 2013 19:21:19 +0000 (20:21 +0100)
lib/private/db/adaptersqlsrv.php

index d0a67af28a7a65b83481e7939264966c5b326ced..88fa2fc9f9efeff0eede4ba21fcedb0a6381f4be 100644 (file)
@@ -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) {