Support for UTF8 names on DB

This commit is contained in:
Saúl Ortega 2018-03-13 18:43:35 -05:00 committed by GitHub
parent 6ed508ec6a
commit ed9f113a03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -692,12 +692,12 @@ func (scope *Scope) buildSelectQuery(clause map[string]interface{}) (str string)
buff := bytes.NewBuffer([]byte{})
i := 0
for pos := range str {
for pos, char := range str {
if str[pos] == '?' {
buff.WriteString(replacements[i])
i++
} else {
buff.WriteByte(str[pos])
buff.WriteRune(char)
}
}