Inherit lastInsertId() from Adapter.

This commit is contained in:
Andreas Fischer 2013-11-04 22:28:41 +01:00
parent 665b7571f4
commit 8274d9f91c
1 changed files with 0 additions and 5 deletions

View File

@ -10,11 +10,6 @@
namespace OC\DB; namespace OC\DB;
class AdapterSQLSrv extends Adapter { class AdapterSQLSrv extends Adapter {
public function lastInsertId($table) {
return $this->conn->realLastInsertId($table);
}
public function fixupStatement($statement) { public function fixupStatement($statement) {
$statement = preg_replace( "/\`(.*?)`/", "[$1]", $statement ); $statement = preg_replace( "/\`(.*?)`/", "[$1]", $statement );
$statement = str_ireplace( 'NOW()', 'CURRENT_TIMESTAMP', $statement ); $statement = str_ireplace( 'NOW()', 'CURRENT_TIMESTAMP', $statement );