summaryrefslogtreecommitdiff
path: root/jsonpath.c
diff options
context:
space:
mode:
authorJoey Adams2010-07-24 22:28:46 +0000
committerJoey Adams2010-07-24 22:28:46 +0000
commitf475e581b72b8c42cf951f6653610d15e71caeee (patch)
tree0a30a239ae10b3ed799688ecbd6791d4488a2cff /jsonpath.c
parentb32257221b4b8e15fada7aabd0fe6e129e00d3e8 (diff)
* Migrated my Unicode functions to util.c and made them rely more on
PostgreSQL's pg_wchar.h routines. * Touched up various functions' documentation. json_node's are currently encoded in UTF-8, and the JSON module is not 100% compatible with arbitrary server encodings yet. I plan to switch from UTF-8 to the server encoding pretty soon, after which JSON should be a well-behaved datatype as far as charsets go.
Diffstat (limited to 'jsonpath.c')
-rw-r--r--jsonpath.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/jsonpath.c b/jsonpath.c
index eaf5b7a..591c5fd 100644
--- a/jsonpath.c
+++ b/jsonpath.c
@@ -176,7 +176,6 @@ jp_show(JSONPath * jp)
break;
case JP_KEY_SUBSCRIPT:
tmp = json_encode_string(elem->data.key.ptr, elem->data.key.length, '"', false);
- Assert(tmp != NULL);
appendStringInfo(string, "%s[%s]", rd ? ".." : "", tmp);
pfree(tmp);
break;