diff options
author | Duncan Coutts <dcoutts@gentoo.org> | 2007-12-13 17:21:22 +0000 |
---|---|---|
committer | Duncan Coutts <dcoutts@gentoo.org> | 2007-12-13 17:21:22 +0000 |
commit | 76133e4ca49c5c28254568d7d2451e7ae85bd010 (patch) | |
tree | bc869cfb7a4983bcaf1759cd7a40a4942c9c5128 /dev-haskell/hdbc-postgresql/files | |
parent | New version. (diff) | |
download | gentoo-2-76133e4ca49c5c28254568d7d2451e7ae85bd010.tar.gz gentoo-2-76133e4ca49c5c28254568d7d2451e7ae85bd010.tar.bz2 gentoo-2-76133e4ca49c5c28254568d7d2451e7ae85bd010.zip |
New version.
(Portage version: 2.1.3.19)
Diffstat (limited to 'dev-haskell/hdbc-postgresql/files')
3 files changed, 85 insertions, 0 deletions
diff --git a/dev-haskell/hdbc-postgresql/files/digest-hdbc-postgresql-1.1.3.0 b/dev-haskell/hdbc-postgresql/files/digest-hdbc-postgresql-1.1.3.0 new file mode 100644 index 000000000000..8c00bfee7d5b --- /dev/null +++ b/dev-haskell/hdbc-postgresql/files/digest-hdbc-postgresql-1.1.3.0 @@ -0,0 +1,3 @@ +MD5 4ebeb46b12948a7ec4d9e380500c8380 HDBC-postgresql-1.1.3.0.tar.gz 20025 +RMD160 cfe56e6934bda74cb57ea50e5b6803c4e7b2ac4a HDBC-postgresql-1.1.3.0.tar.gz 20025 +SHA256 cb53d29cb88a99197b455942d3ca2f98bcb957978c1a9d8c24fe98b8e5f21bf4 HDBC-postgresql-1.1.3.0.tar.gz 20025 diff --git a/dev-haskell/hdbc-postgresql/files/hdbc-postgresql-helper.h b/dev-haskell/hdbc-postgresql/files/hdbc-postgresql-helper.h new file mode 100644 index 000000000000..188e73ba3657 --- /dev/null +++ b/dev-haskell/hdbc-postgresql/files/hdbc-postgresql-helper.h @@ -0,0 +1,16 @@ +#include <libpq-fe.h> + +typedef struct TAG_finalizeonce { + void *encapobj; + int refcount; + int isfinalized; + struct TAG_finalizeonce *parent; +} finalizeonce; + +extern finalizeonce *wrapobjpg(void *obj, finalizeonce *parentobj); + +extern void PQfinish_app(finalizeonce *conn); +extern void PQfinish_finalizer(finalizeonce *conn); + +extern void PQclear_app(finalizeonce *res); +extern void PQclear_finalizer(finalizeonce *res); diff --git a/dev-haskell/hdbc-postgresql/files/pgtypes.h b/dev-haskell/hdbc-postgresql/files/pgtypes.h new file mode 100644 index 000000000000..abf1dcdbbc99 --- /dev/null +++ b/dev-haskell/hdbc-postgresql/files/pgtypes.h @@ -0,0 +1,66 @@ +/* File: pgtypes.h + * + * Description: See "pgtypes.c" + * + * Comments: See "notice.txt" for copyright and license information. + * + */ + +#ifndef __PGTYPES_H__ +#define __PGTYPES_H__ + +/* the type numbers are defined by the OID's of the types' rows */ +/* in table pg_type */ + + +#if 0 +#define PG_TYPE_LO ???? /* waiting for permanent type */ +#endif + +#define PG_TYPE_BOOL 16 +#define PG_TYPE_BYTEA 17 +#define PG_TYPE_CHAR 18 +#define PG_TYPE_NAME 19 +#define PG_TYPE_INT8 20 +#define PG_TYPE_INT2 21 +#define PG_TYPE_INT2VECTOR 22 +#define PG_TYPE_INT4 23 +#define PG_TYPE_REGPROC 24 +#define PG_TYPE_TEXT 25 +#define PG_TYPE_OID 26 +#define PG_TYPE_TID 27 +#define PG_TYPE_XID 28 +#define PG_TYPE_CID 29 +#define PG_TYPE_OIDVECTOR 30 +#define PG_TYPE_SET 32 +#define PG_TYPE_CHAR2 409 +#define PG_TYPE_CHAR4 410 +#define PG_TYPE_CHAR8 411 +#define PG_TYPE_POINT 600 +#define PG_TYPE_LSEG 601 +#define PG_TYPE_PATH 602 +#define PG_TYPE_BOX 603 +#define PG_TYPE_POLYGON 604 +#define PG_TYPE_FILENAME 605 +#define PG_TYPE_FLOAT4 700 +#define PG_TYPE_FLOAT8 701 +#define PG_TYPE_ABSTIME 702 +#define PG_TYPE_RELTIME 703 +#define PG_TYPE_TINTERVAL 704 +#define PG_TYPE_UNKNOWN 705 +#define PG_TYPE_MONEY 790 +#define PG_TYPE_OIDINT2 810 +#define PG_TYPE_OIDINT4 910 +#define PG_TYPE_OIDNAME 911 +#define PG_TYPE_BPCHAR 1042 +#define PG_TYPE_VARCHAR 1043 +#define PG_TYPE_DATE 1082 +#define PG_TYPE_TIME 1083 +#define PG_TYPE_TIMESTAMP_NO_TMZONE 1114 /* since 7.2 */ +#define PG_TYPE_DATETIME 1184 +#define PG_TYPE_TIME_WITH_TMZONE 1266 /* since 7.1 */ +#define PG_TYPE_TIMESTAMP 1296 /* deprecated since 7.0 */ +#define PG_TYPE_NUMERIC 1700 +#define INTERNAL_ASIS_TYPE (-9999) + +#endif |