We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a76acee commit b4e0053Copy full SHA for b4e0053
main.go
@@ -270,7 +270,7 @@ func countParams(queryStmt *sql.Stmt, queryString string) int {
270
271
// Query returned an error
272
// Parse the error to get the expected params count
273
- regex := regexp.MustCompile(`sql: expected (\p{N}) arguments, got 0`)
+ regex := regexp.MustCompile(`sql: expected (\p{N}+) arguments, got 0`)
274
regexSubmatches := regex.FindAllStringSubmatch(err.Error(), 1)
275
if len(regexSubmatches) != 1 || len(regexSubmatches[0]) != 2 {
276
// This is weird
0 commit comments