Inherit lastInsertId() from Adapter.
This commit is contained in:
parent
665b7571f4
commit
8274d9f91c
|
@ -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 );
|
||||||
|
|
Loading…
Reference in New Issue