Changeset: 081fb6831071 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/081fb6831071
Modified Files:
monetdb5/modules/atoms/pg_jsonpath/jsonpath_exec.c
Branch: json-extend
Log Message:
(tmp) fixes
diffs (25 lines):
diff --git a/monetdb5/modules/atoms/pg_jsonpath/jsonpath_exec.c
b/monetdb5/modules/atoms/pg_jsonpath/jsonpath_exec.c
--- a/monetdb5/modules/atoms/pg_jsonpath/jsonpath_exec.c
+++ b/monetdb5/modules/atoms/pg_jsonpath/jsonpath_exec.c
@@ -652,7 +652,7 @@ executeItemOptUnwrapTarget(JsonPathExecC
/* free value if it was not added to
found list */
if (jspHasNext(jsp) || !found)
- pfree(v);
+ (void) v; // pfree(v); TODO
properly free v
}
else if (!jspIgnoreStructuralErrors(cxt))
{
@@ -1098,12 +1098,6 @@ executeItemUnwrapTargetArray(JsonPathExe
JsonbValue *jb,
JsonValueList *found,
bool unwrapElements)
{
- if (JsonbType(jb) != jbvBinary)
- {
- Assert(JsonbType(jb) != jbvArray);
- elog(ERROR, "invalid jsonb array value type: %d",
JsonbType(jb));
- }
-
return executeAnyItem
(cxt, jsp, jb, found, 1, 1, 1,
false, unwrapElements);
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]