mirror of
https://github.com/postgres/postgres.git
synced 2025-07-11 10:01:57 +03:00
SQL/JSON: Miscellaneous fixes and improvements
This addresses some post-commit review comments for commits6185c973
,de3600452
, and 9425c596a0, with the following changes: * Fix JSON_TABLE() syntax documentation to use the term "path_expression" for JSON path expressions instead of "json_path_specification" to be consistent with the other SQL/JSON functions. * Fix a typo in the example code in JSON_TABLE() documentation. * Rewrite some newly added comments in jsonpath.h. * In JsonPathQuery(), add missing cast to int before printing an enum value. Reported-by: Jian He <jian.universality@gmail.com> Discussion: https://postgr.es/m/CACJufxG_e0QLCgaELrr2ZNz7AxPeGCNKAORe3fHtFCQLsH4J4Q@mail.gmail.com
This commit is contained in:
@ -3935,7 +3935,7 @@ JsonPathQuery(Datum jb, JsonPath *jp, JsonWrapper wrapper, bool *empty,
|
||||
JsonContainerIsScalar(singleton->val.binary.data));
|
||||
else
|
||||
{
|
||||
elog(ERROR, "unrecognized json wrapper %d", wrapper);
|
||||
elog(ERROR, "unrecognized json wrapper %d", (int) wrapper);
|
||||
wrap = false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user