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

No quotes are put around "user" table name #414

Closed
extesy opened this issue Aug 14, 2014 · 3 comments
Closed

No quotes are put around "user" table name #414

extesy opened this issue Aug 14, 2014 · 3 comments

Comments

@extesy
Copy link

extesy commented Aug 14, 2014

Upgrading peewee from 2.2.5 to 2.3.0 broke something since now I get syntax error exception for this postgres query:

UPDATE "user" SET "last_active_at" = %s WHERE (user."id" = %s)

The problem is that "user" table name is a reserved keyword so it must be put in quotes.

@coleifer
Copy link
Owner

What SQL was generated previously? Was an alias used? Sorry I don't recall.

@extesy
Copy link
Author

extesy commented Aug 14, 2014

I don't know, probably just quotes around the table name, just like right after UPDATE word.

@coleifer
Copy link
Owner

This should be fixed by bb48ca3

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