There is an issue with the QuoteTo method for the tuple data type of clickhouse, which resulted in the data not being written. An attempt was made to fix the issue, and the code is as follows:
func (dialector Dialector) QuoteTo(writer clause.Writer, str string) {
writer.WriteByte('`')
if strings.Contains(str, ".") {
for idx, str := range strings.Split(str, ".") {
if idx > 0 {
writer.WriteString(".")
}
writer.WriteString(str)
}
writer.WriteByte('`')
} else {
writer.WriteString(str)
writer.WriteByte('`')
}
GORM Playground Link
https://github.com/go-gorm/playground/pull/1
Description
There is an issue with the QuoteTo method for the tuple data type of clickhouse, which resulted in the data not being written. An attempt was made to fix the issue, and the code is as follows:
}