Fix some more confusion between uint32 and Datum.
authorTom Lane
Wed, 7 May 2014 03:52:30 +0000 (23:52 -0400)
committerTom Lane
Wed, 7 May 2014 03:52:30 +0000 (23:52 -0400)
src/backend/utils/adt/jsonb_gin.c

index 9f8c178ab10f24ab9adf2282be9a5383b08538af..67f940ac979cc0cd3f7321fb6af80c6c4aac84e1 100644 (file)
@@ -548,7 +548,7 @@ gin_extract_jsonb_hash(PG_FUNCTION_ARGS)
            case WJB_VALUE:
                /* Element/value case */
                JsonbHashScalarValue(&v, &stack->hash);
-               entries[i++] = stack->hash;
+               entries[i++] = UInt32GetDatum(stack->hash);
                break;
            case WJB_END_ARRAY:
            case WJB_END_OBJECT: