summaryrefslogtreecommitdiffstats
path: root/vendor
diff options
context:
space:
mode:
authorEthan Koenig <etk39@cornell.edu>2017-05-20 04:48:22 -0400
committerLunny Xiao <xiaolunwen@gmail.com>2017-05-20 16:48:22 +0800
commitcf02cd7ba0c94165743660cf30f0cbb5a73a385e (patch)
tree6f09dce7c705041df1e042750137e379b0af66dc /vendor
parent85a73965256411c36ecc050eeb7967d3c8ef20d5 (diff)
downloadgitea-cf02cd7ba0c94165743660cf30f0cbb5a73a385e.tar.gz
gitea-cf02cd7ba0c94165743660cf30f0cbb5a73a385e.zip
Fix and test for delete user (#1713)
* Fix and test for delete user * Run updates in batches * Unit test
Diffstat (limited to 'vendor')
-rw-r--r--vendor/github.com/go-xorm/builder/cond_in.go6
-rw-r--r--vendor/github.com/go-xorm/builder/cond_notin.go6
-rw-r--r--vendor/vendor.json6
3 files changed, 7 insertions, 11 deletions
diff --git a/vendor/github.com/go-xorm/builder/cond_in.go b/vendor/github.com/go-xorm/builder/cond_in.go
index 71093e4b49..f6366d35c2 100644
--- a/vendor/github.com/go-xorm/builder/cond_in.go
+++ b/vendor/github.com/go-xorm/builder/cond_in.go
@@ -23,10 +23,8 @@ func In(col string, values ...interface{}) Cond {
}
func (condIn condIn) handleBlank(w Writer) error {
- if _, err := fmt.Fprintf(w, "%s IN ()", condIn.col); err != nil {
- return err
- }
- return nil
+ _, err := fmt.Fprint(w, "0=1")
+ return err
}
func (condIn condIn) WriteTo(w Writer) error {
diff --git a/vendor/github.com/go-xorm/builder/cond_notin.go b/vendor/github.com/go-xorm/builder/cond_notin.go
index 9be44cb2af..dc3ac49a35 100644
--- a/vendor/github.com/go-xorm/builder/cond_notin.go
+++ b/vendor/github.com/go-xorm/builder/cond_notin.go
@@ -20,10 +20,8 @@ func NotIn(col string, values ...interface{}) Cond {
}
func (condNotIn condNotIn) handleBlank(w Writer) error {
- if _, err := fmt.Fprintf(w, "%s NOT IN ()", condNotIn.col); err != nil {
- return err
- }
- return nil
+ _, err := fmt.Fprint(w, "0=0")
+ return err
}
func (condNotIn condNotIn) WriteTo(w Writer) error {
diff --git a/vendor/vendor.json b/vendor/vendor.json
index 93e8fa9d8b..109f67b998 100644
--- a/vendor/vendor.json
+++ b/vendor/vendor.json
@@ -450,10 +450,10 @@
"revisionTime": "2016-11-01T11:13:14Z"
},
{
- "checksumSHA1": "HHB+Jna1wv0cXLxtCyOnQqFwvn4=",
+ "checksumSHA1": "9SXbj96wb1PgppBZzxMIN0axbFQ=",
"path": "github.com/go-xorm/builder",
- "revision": "c6e604e9c7b7461715091e14ad0c242ec44c26e4",
- "revisionTime": "2017-02-24T04:30:50Z"
+ "revision": "043186300e9b2c22abdfc83567a979e3af04d9ae",
+ "revisionTime": "2017-05-18T21:58:56Z"
},
{
"checksumSHA1": "vt2CGANHLNXPAZ01ve3UlsgQ0uU=",