summaryrefslogtreecommitdiffstats
path: root/aurweb
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2019-01-14 20:44:12 +0100
committerEli Schwartz <eschwartz@archlinux.org>2019-01-14 20:45:37 +0100
commit042f3f2622e1adbc7546cfa25a5d138486b99341 (patch)
treed3f56bc3205725635a5282b362221dd1a78c98ec /aurweb
parentf1d109e9b6863d924d2cb20f83e41d7091d62e20 (diff)
downloadaur-042f3f2622e1adbc7546cfa25a5d138486b99341.tar.gz
aur-042f3f2622e1adbc7546cfa25a5d138486b99341.tar.xz
Quote MySql 8.0 reserved keywords
Signed-off-by: Florian Pritz <bluewind@xinu.at> Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
Diffstat (limited to 'aurweb')
-rwxr-xr-xaurweb/git/update.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/aurweb/git/update.py b/aurweb/git/update.py
index 0614e9ea..39128f8b 100755
--- a/aurweb/git/update.py
+++ b/aurweb/git/update.py
@@ -180,13 +180,13 @@ def save_metadata(metadata, conn, user):
# Add package groups.
if 'groups' in pkginfo:
for group in pkginfo['groups']:
- cur = conn.execute("SELECT ID FROM Groups WHERE Name = ?",
+ cur = conn.execute("SELECT ID FROM `Groups` WHERE Name = ?",
[group])
row = cur.fetchone()
if row:
groupid = row[0]
else:
- cur = conn.execute("INSERT INTO Groups (Name) VALUES (?)",
+ cur = conn.execute("INSERT INTO `Groups` (Name) VALUES (?)",
[group])
conn.commit()
groupid = cur.lastrowid