Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

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

Sign up
Appearance settings

Commit14ecaa2

Browse files
committed
Bug fixes and * support.
1 parent390f7df commit14ecaa2

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
int32len,jqPos;
265265
char*jqBase;
266266

267-
if (!value)
267+
if (!value||value->type==jqiAny)
268268
returnNULL;
269269

270270
result= (JsonbVodkaValue*)palloc(sizeof(JsonbVodkaValue));
@@ -274,21 +274,21 @@ make_vodka_value(JsQueryValue *value)
274274

275275
switch (value->type)
276276
{
277-
casejbvNull:
277+
casejqiNull:
278278
result->type=JSONB_VODKA_FLAG_VALUE |JSONB_VODKA_FLAG_NULL;
279279
break;
280-
casejbvBool:
280+
casejqiBool:
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-
casejbvString:
286+
casejqiString:
287287
result->type=JSONB_VODKA_FLAG_VALUE |JSONB_VODKA_FLAG_STRING;
288288
read_int32(len,jqBase,jqPos);
289289
result->hash=hash_any((unsignedchar*)jqBase+jqPos,len);
290290
break;
291-
casejbvNumeric:
291+
casejqiNumeric:
292292
result->type=JSONB_VODKA_FLAG_VALUE |JSONB_VODKA_FLAG_NUMERIC;
293293
result->n= (Numeric)(jqBase+jqPos);
294294
break;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp