mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
fix insertid in OC_DB
This commit is contained in:
parent
df149217b9
commit
02ad83b04d
1 changed files with 1 additions and 6 deletions
|
|
@ -426,12 +426,7 @@ class OC_DB {
|
|||
* @return primarykey
|
||||
*/
|
||||
static function insertid() {
|
||||
global $CONFIG_DBTYPE;
|
||||
if($CONFIG_DBTYPE=='sqlite'){
|
||||
return self::$DBConnection->lastInsertRowid();
|
||||
}elseif($CONFIG_DBTYPE=='mysql'){
|
||||
return(mysqli_insert_id(self::$DBConnection));
|
||||
}
|
||||
return self::$DBConnection->lastInsertID();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue