summaryrefslogtreecommitdiffstats
path: root/vendor/xorm.io/builder/cond_eq.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/xorm.io/builder/cond_eq.go')
-rw-r--r--vendor/xorm.io/builder/cond_eq.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/vendor/xorm.io/builder/cond_eq.go b/vendor/xorm.io/builder/cond_eq.go
index 32f04d5d4a..9976d1804c 100644
--- a/vendor/xorm.io/builder/cond_eq.go
+++ b/vendor/xorm.io/builder/cond_eq.go
@@ -64,6 +64,10 @@ func (eq Eq) OpWriteTo(op string, w Writer) error {
return err
}
w.Append(int(v.(Decr)))
+ case nil:
+ if _, err := fmt.Fprintf(w, "%s=null", k); err != nil {
+ return err
+ }
default:
if _, err := fmt.Fprintf(w, "%s=?", k); err != nil {
return err