diff options
Diffstat (limited to 'vendor/github.com/go-xorm/builder/builder_select.go')
-rw-r--r-- | vendor/github.com/go-xorm/builder/builder_select.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vendor/github.com/go-xorm/builder/builder_select.go b/vendor/github.com/go-xorm/builder/builder_select.go index 05f116e005..3a3967cccc 100644 --- a/vendor/github.com/go-xorm/builder/builder_select.go +++ b/vendor/github.com/go-xorm/builder/builder_select.go @@ -45,6 +45,10 @@ func (b *Builder) selectWriteTo(w Writer) error { } } + if !b.cond.IsValid() { + return nil + } + if _, err := fmt.Fprint(w, " WHERE "); err != nil { return err } |