Merge pull request #1438 from danvinhe/bugfix/i1435

Bugfix/i1435
This commit is contained in:
John Guo 2021-11-04 20:38:58 +08:00 committed by GitHub
commit 9a757acc88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -829,6 +829,10 @@ func FormatSqlWithArgs(sql string, args []interface{}) string {
if args[index] == nil { if args[index] == nil {
return "null" return "null"
} }
// Parameters of type Raw do not require special treatment
if v, ok := args[index].(Raw); ok {
return gconv.String(v)
}
var ( var (
reflectInfo = utils.OriginValueAndKind(args[index]) reflectInfo = utils.OriginValueAndKind(args[index])
) )