Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 14ecaa2

Browse filesBrowse files
committed
Bug fixes and * support.
1 parent 390f7df commit 14ecaa2
Copy full SHA for 14ecaa2

File tree

1 file changed

+5
-5
lines changed
Filter options

1 file changed

+5
-5
lines changed

‎jsonb_vodka_ops.c

Copy file name to clipboardExpand all lines: jsonb_vodka_ops.c
+5-5Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.