mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-22 19:49:47 +00:00
unit testing postgres, mysql. temporary workaround for backticks
This commit is contained in:
@@ -18,13 +18,16 @@ func Rebind(query string) string {
|
||||
rqb := make([]byte, 0, len(qb)+5)
|
||||
j := 1
|
||||
for _, b := range qb {
|
||||
if b == '?' {
|
||||
switch b {
|
||||
case '?':
|
||||
rqb = append(rqb, '$')
|
||||
for _, b := range strconv.Itoa(j) {
|
||||
rqb = append(rqb, byte(b))
|
||||
}
|
||||
j++
|
||||
} else {
|
||||
case '`':
|
||||
rqb = append(rqb, ' ')
|
||||
default:
|
||||
rqb = append(rqb, b)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user