Skip to content

Commit 99c23ae

Browse files
author
Nikita Glukhov
committed
Extract enum JsonbValueType
1 parent 9aed337 commit 99c23ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/include/utils/jsonb.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ typedef struct
233233
#define JB_ROOT_IS_ARRAY(jbp_) ((*(uint32 *) VARDATA(jbp_) & JB_FARRAY) != 0)
234234

235235

236-
enum jbvType
236+
typedef enum jbvType
237237
{
238238
/* Scalar types */
239239
jbvNull = 0x0,
@@ -253,7 +253,7 @@ enum jbvType
253253
* into JSON strings when outputted to json/jsonb.
254254
*/
255255
jbvDatetime = 0x20,
256-
};
256+
} JsonbValueType;
257257

258258
/*
259259
* JsonbValue: In-memory representation of Jsonb. This is a convenient

0 commit comments

Comments
 (0)