pgquarrel icon indicating copy to clipboard operation
pgquarrel copied to clipboard

Handle functions with a double dollar sign in the body

Open barkingfoodog opened this issue 4 years ago • 2 comments

Check a function or procedure's body for the string $$ to see if it is safe for dollar-quoting the body. If found, expand the dollar quote until it is not found in the body.

barkingfoodog avatar Nov 29 '19 23:11 barkingfoodog

@barkingfoodog Why don't you use appendStringLiteralDQ instead of duplicating pg_dump code ?

eulerto avatar Dec 02 '19 22:12 eulerto

Heh...because I didn't know about that function which is much nicer than what I wrote. I'll update this PR to use it when I get a chance in the next few days. Thanks for pointing out appendStringLiteralDQ!

barkingfoodog avatar Dec 05 '19 06:12 barkingfoodog