mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
git-serve: Fix broken SQL statement
Add a missing space to the SQL statement performing the disown operation. Fixes FS#55068. Note that the broken query was not discovered by the test suite since SQLite parses "?AND" inside prepared statements gracefully while MySQL does not. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
e0d3fbfdf1
commit
624d168b22
1 changed files with 1 additions and 1 deletions
|
@ -192,7 +192,7 @@ def pkgreq_by_pkgbase(pkgbase_id, reqtype):
|
||||||
"INNER JOIN RequestTypes ON " +
|
"INNER JOIN RequestTypes ON " +
|
||||||
"RequestTypes.ID = PackageRequests.ReqTypeID " +
|
"RequestTypes.ID = PackageRequests.ReqTypeID " +
|
||||||
"WHERE PackageRequests.Status = 0 " +
|
"WHERE PackageRequests.Status = 0 " +
|
||||||
"AND PackageRequests.PackageBaseID = ?" +
|
"AND PackageRequests.PackageBaseID = ? " +
|
||||||
"AND RequestTypes.Name = ?", [pkgbase_id, reqtype])
|
"AND RequestTypes.Name = ?", [pkgbase_id, reqtype])
|
||||||
|
|
||||||
return [row[0] for row in cur.fetchall()]
|
return [row[0] for row in cur.fetchall()]
|
||||||
|
|
Loading…
Add table
Reference in a new issue