Skip to content

Commit acb4431

Browse files
committed
fix join
1 parent a62bc60 commit acb4431

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

named.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ func bindStruct(bindType int, query string, arg interface{}, m *reflectx.Mapper)
224224
return bound, arglist, nil
225225
}
226226

227-
var valuesReg = regexp.MustCompile(`\)\s*(?i)VALUES\s*\(`)
227+
var valuesReg = regexp.MustCompile(`[\(\)]\s*(?i)VALUES\s*\(`)
228228

229229
func findMatchingClosingBracketIndex(s string) int {
230230
count := 0

0 commit comments

Comments
 (0)