aboutsummaryrefslogtreecommitdiff
path: root/pkg/markup
diff options
context:
space:
mode:
authorPablo Saavedra <saavedra.pablo@gmail.com>2017-05-30 05:24:37 +0200
committer无闻 <u@gogs.io>2017-05-29 23:24:37 -0400
commit5906268917d35d6c2cb9bef63938c6ad8770e1f2 (patch)
tree835949433029982b60b0cfe6325420eb3198981f /pkg/markup
parenta1d411a0182dd5c5ba227acf43781181c11a1ae3 (diff)
models/org_team: getUserTeams uses includes always -1 in the IN statement (#4412)
Ensure that the IN clause contains one value at least. The idea is avoid a syntax error in the SQL sentence and rollbacks in the transactions. For example: ERROR: syntax error at or near ")" LINE 1: ...RE ... and team.id IN (); We will always add the -1 value in the IN list.
Diffstat (limited to 'pkg/markup')
0 files changed, 0 insertions, 0 deletions