The insertedId is using for MySql Database do retrieve the id after a insert using the mysql_insert_id function.
For the Postgres Database I just added a RETURNING to retrieve the id and then return that in insert function.
To fix it I have to put mysql_insert_id inside the insert funcion so all insert call will return the inserted id.
The insertedId is using for MySql Database do retrieve the id after a insert using the mysql_insert_id function.
For the Postgres Database I just added a RETURNING to retrieve the id and then return that in insert function.
To fix it I have to put mysql_insert_id inside the insert funcion so all insert call will return the inserted id.