forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit473a352
committed
SQL/JSON: Document behavior when input document is not jsonb
The input document to functions JSON_EXISTS(), JSON_QUERY(),JSON_VALUE(), and JSON_TABLE() can be specified as character orUTF8-encoded bytea strings. These are automatically converted tojsonb with an implicit cast before being passed to the jsonpathmachinery.In the current implementation, errors that occur when parsing thespecified string into a valid JSON document are thrownunconditionally. This means they are not subject to the explicit orimplicit ON ERROR clause of those functions, which is a standard-conforming behavior. Add a note to the documentation to mentionthat.Reported-by: Markus WinandDiscussion:https://postgr.es/m/F7DD1442-265C-4220-A603-CB0DEB77E91D%40winand.at1 parent5d6c64d commit473a352
1 file changed
+10
-0
lines changedLines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
18861 | 18861 |
| |
18862 | 18862 |
| |
18863 | 18863 |
| |
| 18864 | + | |
| 18865 | + | |
| 18866 | + | |
| 18867 | + | |
| 18868 | + | |
| 18869 | + | |
| 18870 | + | |
| 18871 | + | |
| 18872 | + | |
| 18873 | + | |
18864 | 18874 |
| |
18865 | 18875 |
| |
18866 | 18876 |
| |
|
0 commit comments
Comments
(0)