完善
This commit is contained in:
parent
239a8729a6
commit
f7737aff50
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user