File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -264,7 +264,7 @@ make_vodka_value(JsQueryValue *value)
264264 int32 len , jqPos ;
265265 char * jqBase ;
266266
267- if (!value )
267+ if (!value || value -> type == jqiAny )
268268 return NULL ;
269269
270270 result = (JsonbVodkaValue * )palloc (sizeof (JsonbVodkaValue ));
@@ -274,21 +274,21 @@ make_vodka_value(JsQueryValue *value)
274274
275275 switch (value -> type )
276276 {
277- case jbvNull :
277+ case jqiNull :
278278 result -> type = JSONB_VODKA_FLAG_VALUE | JSONB_VODKA_FLAG_NULL ;
279279 break ;
280- case jbvBool :
280+ case jqiBool :
281281 result -> type = JSONB_VODKA_FLAG_VALUE | JSONB_VODKA_FLAG_BOOL ;
282282 read_byte (len , jqBase , jqPos );
283283 if (len )
284284 result -> type |= JSONB_VODKA_FLAG_TRUE ;
285285 break ;
286- case jbvString :
286+ case jqiString :
287287 result -> type = JSONB_VODKA_FLAG_VALUE | JSONB_VODKA_FLAG_STRING ;
288288 read_int32 (len , jqBase , jqPos );
289289 result -> hash = hash_any ((unsigned char * )jqBase + jqPos , len );
290290 break ;
291- case jbvNumeric :
291+ case jqiNumeric :
292292 result -> type = JSONB_VODKA_FLAG_VALUE | JSONB_VODKA_FLAG_NUMERIC ;
293293 result -> n = (Numeric )(jqBase + jqPos );
294294 break ;
You can’t perform that action at this time.
0 commit comments