forked from tada/pljava
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathArray.h
More file actions
39 lines (32 loc) · 1.16 KB
/
Copy pathArray.h
File metadata and controls
39 lines (32 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
* Copyright (c) 2004, 2005, 2006 TADA AB - Taby Sweden
* Distributed under the terms shown in the file COPYRIGHT
* found in the root folder of this project or at
* http://eng.tada.se/osprojects/COPYRIGHT.html
*/
#ifndef __pljava_type_Array_h
#define __pljava_type_Array_h
#include "pljava/type/Type.h"
#ifdef __cplusplus
extern "C" {
#endif
#include <access/tupmacs.h>
/***********************************************************************
* Array related stuff.
*
* @author Thomas Hallgren
*
***********************************************************************/
#if (PGSQL_MAJOR_VER == 8 && PGSQL_MINOR_VER < 2)
extern ArrayType* createArrayType(jsize nElems, size_t elemSize, Oid elemType);
#else
extern ArrayType* createArrayType(jsize nElems, size_t elemSize, Oid elemType, bool withNulls);
extern void arraySetNull(bits8* bitmap, int offset, bool flag);
extern bool arrayIsNull(const bits8* bitmap, int offset);
#endif
extern Type Array_fromOid(Oid typeId, Type elementType);
extern Type Array_fromOid2(Oid typeId, Type elementType, DatumCoercer coerceDatum, ObjectCoercer coerceObject);
#ifdef __cplusplus
} /* end of extern "C" declaration */
#endif
#endif