get_last_insert_id requires param for pgsql support

This commit is contained in:
Daku 2016-06-19 04:57:14 +01:00
parent 66226b5ccf
commit b75638cace

View File

@ -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');
}
/**