This commit is contained in:
xing 2022-09-16 23:13:49 +08:00
parent 239a8729a6
commit f7737aff50

View File

@ -111,7 +111,7 @@ func (w SqlBuilder) ParseWhere(in ...[]interface{}) (string, []interface{}) {
s.WriteString(" ? and ") s.WriteString(" ? and ")
w.parseType(ss[start+1:end], &s, &args) w.parseType(ss[start+1:end], &s, &args)
if i == j-1 && fl { if i == j-1 && fl {
st := s.String() st = s.String()
st = strings.TrimRight(st, "and ") st = strings.TrimRight(st, "and ")
s.Reset() s.Reset()
s.WriteString(st) s.WriteString(st)