From ab201ded500600738b4e7aaea0b82a41f70429d4 Mon Sep 17 00:00:00 2001 From: what Date: Thu, 13 Jun 2024 16:13:13 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=20Reset=20=E6=94=AF=E6=8C=81=20join?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- builder.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/builder.go b/builder.go index bf10342..9b0816d 100644 --- a/builder.go +++ b/builder.go @@ -2351,6 +2351,10 @@ func (b *Builder) Reset(targets ...string) *Builder { delete(b.Bindings, TYPE_COLUMN) delete(b.Components, TYPE_COLUMN) b.Columns = nil + case TYPE_JOIN: + delete(b.Bindings, TYPE_JOIN) + delete(b.Components, TYPE_JOIN) + b.Joins = nil } } return b