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

Show ?? as ? escaped in PG Tips & Tricks #203

Closed
seancorfield opened this issue Mar 25, 2022 · 0 comments
Closed

Show ?? as ? escaped in PG Tips & Tricks #203

seancorfield opened this issue Mar 25, 2022 · 0 comments
Assignees
Labels
documentation The documentation is wrong or needs improving

Comments

@seancorfield
Copy link
Owner

PG has operators with ? in them (e.g., ?|) because, well, of course it does.

So there's a "conflict" between SQL placeholders (?) and PG operators and you need to escape the question mark by doubling it to get the operator ??| instead of a placeholder.

@seancorfield seancorfield added the documentation The documentation is wrong or needs improving label Mar 25, 2022
@seancorfield seancorfield self-assigned this Mar 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation The documentation is wrong or needs improving
Projects
None yet
Development

No branches or pull requests

1 participant