Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle functions with a double dollar sign in the body #81

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

barkingfoodog
Copy link
Contributor

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.

@eulerto
Copy link
Owner

eulerto commented Dec 2, 2019

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

@barkingfoodog
Copy link
Contributor Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants