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

[stable12] Don't use double quotes in MySQL queries #8681

Merged
merged 1 commit into from
Mar 6, 2018
Merged

Conversation

rullzer
Copy link
Member

@rullzer rullzer commented Mar 6, 2018

Backport of #8391

MySQL databases with the ANSI_QUOTES mode enabled treat " as an identifier
quote (see https://dev.mysql.com/doc/refman/5.7/en/sql-mode.html#sqlmode_ansi_quotes).
So for such databases the 'occ upgrade' fails with an error message like this:
... unknown column 'oc_*' in where clause.

This fix replaces the doulbe quotes with single quotes that should be always
used in MySQL queries to quote literal strings.

Signed-off-by: Robin Müller <robin.mueller@1und1.de>
@rullzer rullzer added the 3. to review Waiting for reviews label Mar 6, 2018
@rullzer rullzer added this to the Nextcloud 12.0.6 milestone Mar 6, 2018
@MorrisJobke MorrisJobke merged commit 3d17305 into stable12 Mar 6, 2018
@MorrisJobke MorrisJobke deleted the 8391_12 branch March 6, 2018 12:19
@MorrisJobke MorrisJobke mentioned this pull request Mar 9, 2018
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants