Skip to content

Conversation

ali-abrar
Copy link

No description provided.

phadej and others added 30 commits September 25, 2018 12:40
fromJSONField: Include JSONPath on JSON parse errors
* Mention GHC generics support in documentation
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.
Better error message for "Query resulted in a command response"
Seems that inspection tests pass on GHC-8.8.1
chris-martin and others added 12 commits June 20, 2019 22:54
Quote from the PostgreSQL documentation:

> Do not include the table's name in the specification
> of a target column — for example, UPDATE table_name
> SET table_name.col = 1 is invalid.

https://www.postgresql.org/docs/11/sql-update.html
fix UPDATE example in executeMany comment
Text taken from upstream libpq docs; this behavior is documented since libpq-8.0.
document `tableColumn` behavior on non-table columns
Transactions that enter an error state must be aborted manually by
issuing a "ROLLBACK". However, if the transaction error happened during
a "COMMIT" then the rollback happens automatically. Issuing a "ROLLBACK"
at this point causes PostgreSQL to issue a "WARNING: There is no
transaction in progress". This warning can have much worse causes (e.g.
you "COMMIT" but never began a transaction). This change makes the
transaction retrying logic never cause PostgreSQL to issue this warning
making it a more useful warning for detecting real bugs.
@ali-abrar ali-abrar closed this Nov 19, 2021
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.

9 participants