[PR #5117] [MERGED] Fix SQL quoting #17649

Closed
opened 2025-11-02 14:44:04 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/5117
Author: @filipnavara
Created: 10/19/2018
Status: Merged
Merged: 10/20/2018
Merged by: @techknowlogick

Base: masterHead: patch-1


📝 Commits (2)

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 models/user_openid.go (+1 -1)

📄 Description

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


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/5117 **Author:** [@filipnavara](https://github.com/filipnavara) **Created:** 10/19/2018 **Status:** ✅ Merged **Merged:** 10/20/2018 **Merged by:** [@techknowlogick](https://github.com/techknowlogick) **Base:** `master` ← **Head:** `patch-1` --- ### 📝 Commits (2) - [`a84d42a`](https://github.com/go-gitea/gitea/commit/a84d42ab9fae012d13c8de6d0f0385354b2cc9d1) Fix SQL quoting - [`e388d5a`](https://github.com/go-gitea/gitea/commit/e388d5afaaa140d315ea2f25b0e69647a12ac080) Merge branch 'master' into patch-1 ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `models/user_openid.go` (+1 -1) </details> ### 📄 Description `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 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 14:44:04 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#17649