-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Fix SQL quoting #5117
Fix SQL quoting #5117
Conversation
`show` is keyword in MySQL and has to be quoted to reference a column name. Use grave accents (ASCII code 96) for quoting to match rest of the source code. It's non-standard SQL, but it's supported by SQLite and MySQL. Signed-off-by: Filip Navara <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #5117 +/- ##
======================================
Coverage 37.4% 37.4%
======================================
Files 308 308
Lines 45612 45612
======================================
Hits 17060 17060
Misses 26095 26095
Partials 2457 2457
Continue to review full report at Codecov.
|
But PostgreSQL nope, AFAIR. |
@er1z I assume it is handled somehow by the libraries because the rest of Gitea code base uses it too. Update: |
@filipnavara thanks for PR 😄 Please send backport of PR to release/v1.6 branch |
show
is keyword in MySQL and has to be quoted to reference a column name. Use grave accents (ASCII code 96) for quoting to match rest of the source code. It's non-standard SQL, but it's supported by SQLite and MySQL.Fixes #5106