mirror of
https://github.com/owncloud/bookmarks.git
synced 2025-02-21 18:54:32 +01:00
Add sequence name in insertid to be more portable
This commit is contained in:
parent
31f69bc00e
commit
cec6a0bf0a
@ -54,13 +54,7 @@ $params=array(
|
|||||||
);
|
);
|
||||||
$query->execute($params);
|
$query->execute($params);
|
||||||
|
|
||||||
if($CONFIG_DBTYPE == 'pgsql')
|
$b_id = OC_DB::insertid('*PREFIX*bookmarks');
|
||||||
{
|
|
||||||
$query = OC_DB::prepare("SELECT currval('*PREFIX*bookmarks_id_seq')");
|
|
||||||
$b_id = $query->execute()->fetchOne();
|
|
||||||
} else {
|
|
||||||
$b_id = OC_DB::insertid();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
if($b_id !== false) {
|
if($b_id !== false) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user