Update expression_ext.go
This commit is contained in:
parent
1acc3bb3ae
commit
e075423929
@ -278,7 +278,8 @@ func (e *expr) SumExpr() *expr {
|
||||
}
|
||||
|
||||
func (e *expr) ReplaceExpr(search string,replace string) *expr {
|
||||
e.expr = fmt.Sprintf("REPLACE(%s,'%s','%s')",e.expr,search,replace);
|
||||
e.expr = "REPLACE(" + e.expr + ",'?','?')"
|
||||
e.args = append(e.args, search, replace)
|
||||
return e
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user