Skip to content

Add cautionary advice about SQL reserved words #9541

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

Merged
merged 1 commit into from
Apr 3, 2018
Merged

Add cautionary advice about SQL reserved words #9541

merged 1 commit into from
Apr 3, 2018

Conversation

msheakoski
Copy link
Contributor

I ran into this issue while following the security docs to set up authentication from the database and thought that it would be a helpful tip for future readers.

@javiereguiluz javiereguiluz changed the base branch from master to 2.7 April 3, 2018 06:26
@javiereguiluz
Copy link
Member

@msheakoski thanks for adding this useful note to docs. We merged it on 2.7 branch and it will later be automatically merged up to all the other branches. Congrats on your first Symfony Docs contribution too!

@javiereguiluz javiereguiluz merged commit 52af828 into symfony:2.7 Apr 3, 2018
javiereguiluz added a commit that referenced this pull request Apr 3, 2018
This PR was submitted for the master branch but it was merged into the 2.7 branch instead (closes #9541).

Discussion
----------

Add cautionary advice about SQL reserved words

I ran into this issue while following the security docs to set up authentication from the database and thought that it would be a helpful tip for future readers.

Commits
-------

52af828 Add cautionary advice about SQL reserved words
@msheakoski msheakoski deleted the quote-user branch April 3, 2018 06:32
wouterj pushed a commit that referenced this pull request May 5, 2018
Naming the table “user” without backtick quoting will trigger an error for anybody that copy/pastes the code because “USER” is a SQL reserved word. See #9541 for more details.
wouterj added a commit that referenced this pull request May 5, 2018
This PR was submitted for the master branch but it was merged into the 2.8 branch instead (closes #9551).

Discussion
----------

Quote “user” table in example code with backticks

Naming the table “user” without backtick quoting will trigger an error for anybody that copy/pastes the code because “USER” is a SQL reserved word. See #9541 for more details.

Commits
-------

27efc38 Quote “user” table in example code with backticks
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.

3 participants