uptrace / bun

SQL-first Golang ORM
https://bun.uptrace.dev
BSD 2-Clause "Simplified" License
3.47k stars 210 forks source link

When the original SQL query and scan are used, there will be garbled characters. #951

Closed xiusin closed 5 months ago

xiusin commented 5 months ago
// import github.com/go-sql-driver/mysql

var data = []map[string]any{}
database.GetPG().NewRaw(sql, holders...).Scan(c.UserContext(), &data)

image

If the scanning of sql.DB object is normal.