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

Remove useless parenthesis from generated SQL #537

Merged
merged 7 commits into from
May 27, 2019

Conversation

groue
Copy link
Owner

@groue groue commented May 26, 2019

This is a purely aesthetic PR: it just removes many useless parenthesis from generated SQL:

// Before: SELECT * FROM "player" WHERE ("id" = 1)
// After:  SELECT * FROM "player" WHERE "id" = 1
try Player.fetchOne(key: 1)

It also documents that the SQL generated by the query interface is out of the scope of semantic versioning: GRDB needs to be able to freely change its SQL output for any useful purpose.

@groue groue merged commit 4f4a5d9 into development May 27, 2019
@groue groue deleted the dev/remove-parenthesis branch May 27, 2019 10:29
@groue groue added this to the GRDB 4.1.0 milestone May 29, 2019
@groue groue mentioned this pull request Jun 14, 2019
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant