Skip to content

Using RETURNING Clause in sql causes the insert method to return error #498

@nimdeveloper

Description

@nimdeveloper

calling following query using the execute:

INSERT INTO location (name,created_at,updated_at) VALUES (?,?,?)

will return 1 changes , but when I call

INSERT INTO location (name,created_at,updated_at) VALUES (?,?,?) RETURNING id

It returns 0 changes and causes the insert function to return error!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions