Skip to content

Commit 31b0f60

Browse files
committed
double AS
Signed-off-by: Andrew Thornton <[email protected]>
1 parent 7478527 commit 31b0f60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

models/repo_transfer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ func TransferOwnership(doer *User, newOwnerName string, repo *Repository) (err e
327327

328328
// Delete labels that belong to the old organization and comments that added these labels
329329
if oldOwner.IsOrganization() {
330-
if _, err := sess.Exec(`DELETE FROM issue_label il WHERE il.id IN (
330+
if _, err := sess.Exec(`DELETE FROM issue_label AS il WHERE il.id IN (
331331
SELECT il_too.id FROM (
332332
SELECT issue_label.id
333333
FROM issue_label
@@ -339,7 +339,7 @@ func TransferOwnership(doer *User, newOwnerName string, repo *Repository) (err e
339339
return fmt.Errorf("Unable to remove old org labels: %v", err)
340340
}
341341

342-
if _, err := sess.Exec(`DELETE FROM comment com WHERE com.id IN (
342+
if _, err := sess.Exec(`DELETE FROM comment AS com WHERE com.id IN (
343343
SELECT il_too.id FROM (
344344
SELECT comment.id
345345
FROM comment

0 commit comments

Comments
 (0)