get_last_insert_id requires param for pgsql support
This commit is contained in:
parent
66226b5ccf
commit
b75638cace
@ -837,7 +837,7 @@ class Artists extends Extension {
|
|||||||
INSERT INTO artists (user_id, name, notes, created, updated)
|
INSERT INTO artists (user_id, name, notes, created, updated)
|
||||||
VALUES (?, ?, ?, now(), now())
|
VALUES (?, ?, ?, now(), now())
|
||||||
", array($user->id, $name, $notes));
|
", array($user->id, $name, $notes));
|
||||||
return $database->get_last_insert_id();
|
return $database->get_last_insert_id('artists_id_seq');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user