Skip to content

Escape double '??' to a literal '?' - #8

Merged
phadej merged 1 commit into
masterfrom
double-question-mark
Feb 25, 2019
Merged

phadej merged 1 commit into
masterfrom
double-question-mark

Conversation

@phadej

@phadej phadej commented Feb 24, 2019

Copy link
Copy Markdown
Collaborator

This change makes it possible to use literal question marks in queries to PostgreSQL. This is needed to be able to use the new JSON operators. https://www.postgresql.org/docs/9.5/static/functions-json.html

This change can't break anything, since:

  • Anyone using double question marks would get an error if not supplied the adequate amount of accompanying values (in case of people trying the new JSON operators); or

  • If supplied the adequate amount of accompanying values, PostgreSQL would throw a fit because you'd supply two values directly next to each other, which doesn't make sense.

@phadej
phadej force-pushed the double-question-mark branch 3 times, most recently from 1d2fa01 to d0e27ac Compare February 25, 2019 09:06
This change makes it possible to use literal question marks in queries to PostgreSQL. This is needed to be able to use the new JSON operators. https://www.postgresql.org/docs/9.5/static/functions-json.html

This change can't break anything, since:

* Anyone using double question marks would get an error if not supplied the adequate amount of accompanying values (in case of people trying the new JSON operators); or

* If supplied the adequate amount of accompanying values, PostgreSQL would throw a fit because you'd supply two values directly next to each other, which doesn't make sense.
@phadej
phadej force-pushed the double-question-mark branch from d0e27ac to 6e30ae7 Compare February 25, 2019 09:57
@phadej
phadej merged commit f03cd61 into master Feb 25, 2019
@phadej
phadej deleted the double-question-mark branch February 25, 2019 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants