Skip to content
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

Postgres: Update has syntax error #189

Open
James-A1 opened this issue May 2, 2018 · 1 comment
Open

Postgres: Update has syntax error #189

James-A1 opened this issue May 2, 2018 · 1 comment

Comments

@James-A1
Copy link

James-A1 commented May 2, 2018

Hi, I'm using postgresql and I just tried to use the pixie's update method like so:

QB::table('persons')->where('id', $id)->update(['name' => 'Jack']);

It is giving me a syntax error by adding the LIMIT 1 to the end of the query.

@catchem99
Copy link

Postgres doesn't have LIMIT on update query (https://www.postgresql.org/message-id/3D6A7692.2F43B18%40Yahoo.com)

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

2 participants