Skip to content

Commit 14ecaa2

Browse files
committed
Bug fixes and * support.
1 parent 390f7df commit 14ecaa2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

jsonb_vodka_ops.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy