Skip to content

getSQL issue with consecutive dollar signs ($$) values #684

Closed
@janosnagy

Description

@janosnagy

If a string type filter has a value that contains consecutive dollar signs (eg. some$$thing) then the expression returned by getSQL will not have the correct number of dollar signs (see. attached image)
image

The reason of this problem that in this

return sql.op.replace('?', v);
replace call the second parameter is specified as a string hence there are some special replacement patterns applied see reference

I am wondering if this replace call can be changed that the second parameter would be a function
return sql.op.replace('?', function(){return v;})
since in this case the special replacement patterns would not apply and the value would be correct in the text returned by getSQL. Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIdentified bug which needs a fix

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions