Update expression_ext.go

This commit is contained in:
markussilberbauer-dm 2022-06-30 14:08:03 +02:00 committed by Gerhard Gruber
parent 1acc3bb3ae
commit e075423929

View File

@ -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
}