Skip to content

Commit 97429a2

Browse files
committed
#2727 make IN clause compatible with Postgres
1 parent 9e89584 commit 97429a2

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Gogs - Go Git Service [![Build Status](https://travis-ci.org/gogits/gogs.svg?bra
33

44
![](https://github.com/gogits/gogs/blob/master/public/img/gogs-large-resize.png?raw=true)
55

6-
##### Current version: 0.8.49
6+
##### Current version: 0.8.50
77

88
| Web | UI | Preview |
99
|:-------------:|:-------:|:-------:|

gogs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
"github.com/gogits/gogs/modules/setting"
1818
)
1919

20-
const APP_VER = "0.8.49.0229"
20+
const APP_VER = "0.8.50.0301"
2121

2222
func init() {
2323
runtime.GOMAXPROCS(runtime.NumCPU())

models/org.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,7 +1060,7 @@ func (org *User) GetUserRepositories(userID int64) (err error) {
10601060
And("`team_user`.uid=?", userID).
10611061
Join("INNER", "`team_user`", "`team_user`.team_id=`team`.id").
10621062
Find(&teams); err != nil {
1063-
return fmt.Errorf("GetUserRepositories: get teams: %v", err)
1063+
return fmt.Errorf("get teams: %v", err)
10641064
}
10651065

10661066
teamIDs := make([]string, len(teams))
@@ -1080,10 +1080,10 @@ func (org *User) GetUserRepositories(userID int64) (err error) {
10801080
Join("INNER", "`team_repo`", "`team_repo`.repo_id=`repository`.id").
10811081
Where("`repository`.owner_id=?", org.Id).
10821082
And("`repository`.is_private=?", false).
1083-
Or("`team_repo`.team_id=(?)", strings.Join(teamIDs, ",")).
1083+
Or("`team_repo`.team_id IN (?)", strings.Join(teamIDs, ",")).
10841084
GroupBy("`repository`.id").
10851085
Find(&org.Repos); err != nil {
1086-
return fmt.Errorf("GetUserRepositories: get repositories: %v", err)
1086+
return fmt.Errorf("get repositories: %v", err)
10871087
}
10881088

10891089
// FIXME: should I change this value inside method,

templates/.VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.8.49.0229
1+
0.8.50.0301

0 commit comments

Comments
 (0)