Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
nimdeveloper opened this issue Apr 18, 2025 · 0 comments
Open

Comments

@nimdeveloper
Copy link

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!

@nimdeveloper nimdeveloper changed the title Using RETURNING statement in sql causes the insert method to return error Using RETURNING Clause in sql causes the insert method to return error Apr 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant