We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentbd5ef18 commit3dad856Copy full SHA for 3dad856
jsquery_extract.c
@@ -140,13 +140,23 @@ recursiveExtract(char *jqBase, int32 jqPos,bool indirect, PathItem *path)
140
result->args.items= (ExtractedNode**)palloc(nelems*sizeof(ExtractedNode*));
141
result->args.count=0;
142
result->path=path;
143
+if (type==jqiContains||type==jqiOverlap)
144
+{
145
+pathItem= (PathItem*)palloc(sizeof(PathItem));
146
+pathItem->type=iAnyArray;
147
+pathItem->parent=path;
148
+}
149
+else
150
151
+pathItem=path;
152
153
for (i=0;i<nelems;i++)
154
{
155
ExtractedNode*item;
156
item= (ExtractedNode*)palloc(sizeof(ExtractedNode));
157
item->indirect= false;
158
item->type=eScalar;
-item->path=path;
159
+item->path=pathItem;
160
arg=readJsQueryHeader(jqBase,arrayPos[i],&childType,&nextPos);
161
item->bounds.inequality= false;
162
item->bounds.exact= (JsQueryValue*)palloc(sizeof(JsQueryValue));