From b75638cace775c5d293a627e11008657cd2f5fc8 Mon Sep 17 00:00:00 2001 From: Daku Date: Sun, 19 Jun 2016 04:57:14 +0100 Subject: [PATCH] get_last_insert_id requires param for pgsql support --- ext/artists/main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/artists/main.php b/ext/artists/main.php index a2380120..5276881f 100644 --- a/ext/artists/main.php +++ b/ext/artists/main.php @@ -837,7 +837,7 @@ class Artists extends Extension { INSERT INTO artists (user_id, name, notes, created, updated) VALUES (?, ?, ?, now(), now()) ", array($user->id, $name, $notes)); - return $database->get_last_insert_id(); + return $database->get_last_insert_id('artists_id_seq'); } /**