File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -280,14 +280,14 @@ func countParams(queryStmt *sql.Stmt) (int, error) {
280
280
// This is weird
281
281
// queryStmt is prepared (compiled) so it is valid
282
282
// but yet there was an error executing queryStmt
283
- return 0 , fmt .Errorf ("Cannot extract params count from query error: %v" , err )
283
+ return - 1 , fmt .Errorf ("Cannot extract params count from query error: %v" , err )
284
284
}
285
285
count , err := strconv .Atoi (regexSubmatches [0 ][1 ])
286
286
if err != nil {
287
287
// This is even weirder
288
288
// The regex is \p{N}+ (unicode number sequence) and there was a match,
289
289
// but converting it from string to int returned an error
290
- return 0 , fmt .Errorf (`Cannot convert \p{N}+ regex to int: %v` , err )
290
+ return - 1 , fmt .Errorf (`Cannot convert \p{N}+ regex to int: %v` , err )
291
291
}
292
292
return count , nil
293
293
}
You can’t perform that action at this time.
0 commit comments