[stable9] lastInsertId requires the prefix (#25786)

backport of https://github.com/owncloud/core/pull/25764
This commit is contained in:
Jörn Friedrich Dreyer 2016-08-12 15:10:19 +02:00 committed by Lukas Reschke
parent d2d1508276
commit 11fe503bcd
No known key found for this signature in database
GPG Key ID: B9F6980CF6E759B1
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@ class DBConfigService {
'type' => $builder->createNamedParameter($type, IQueryBuilder::PARAM_INT)
]);
$query->execute();
return (int)$this->connection->lastInsertId('external_mounts');
return (int)$this->connection->lastInsertId('*PREFIX*external_mounts');
}
/**