Skip to content

Conversation

Vlix
Copy link

@Vlix Vlix commented Mar 13, 2018

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 from postgresql-simple if not supplied the adequate amount of accompanying Actions (e.g. people trying the new JSON operators); or

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

Vlix added 3 commits March 14, 2018 00:33
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.
@Vlix
Copy link
Author

Vlix commented May 3, 2018

Anyone know how often @lpsmith checks this repository?

@Vlix
Copy link
Author

Vlix commented Jun 28, 2018

The tests here use PSQL version 9.4 since that's when jsonb and the question mark operators got introduced.
If it's needed to keep testing postgresql-simple on version 9.3, I can make changes so the tests are only run on a seperate test that uses a PSQL version higher than 9.3

@Vlix
Copy link
Author

Vlix commented Jan 31, 2019

Bump.

Doesn't anyone want to use JSON operators in PostgreSQL?

@phadej
Copy link

phadej commented Feb 1, 2019

@Vlix sorry for not noticing, I haven't watched this repository closely. If you mind making PR against my fork, it would help (there's up to date travis setup as well)

@Vlix
Copy link
Author

Vlix commented Feb 1, 2019

@phadej Ah, hadn't noticed the maintainer has switched. Will do.

@Vlix Vlix closed this Feb 1, 2019
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