Skip to content

insert() method returning false on Postgresql #146

@leosilvano

Description

@leosilvano

PDO::lastInsertId() requires the name of the sequence from the table so it returns the last id correctly... Is there any way to generate something like insert into users (name) values ('name') returning id; without using raw sql?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions