diff --git a/db/sql/SqlDb.go b/db/sql/SqlDb.go index b9d63d8e..e1a88874 100644 --- a/db/sql/SqlDb.go +++ b/db/sql/SqlDb.go @@ -78,7 +78,7 @@ func (d *SqlDb) prepareQueryWithDialect(query string, dialect gorp.Dialect) stri case gorp.PostgresDialect: var queryBuilder strings.Builder argNum := 1 - for _, r := range []rune(query) { + for _, r := range query { switch r { case '?': queryBuilder.WriteString("$" + strconv.Itoa(argNum))