aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/python/pgmodule.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2001-06-22 17:48:39 +0000
committerPeter Eisentraut <peter_e@gmx.net>2001-06-22 17:48:39 +0000
commit31fe394cd8959d5d98e3eaa7065a9b914f922ed9 (patch)
treeed6012efc5ed2004893c1a3d80d01cf321d71d51 /src/interfaces/python/pgmodule.c
parenta8dbe428de8f8c11a047c441c9f1b5b5433b0115 (diff)
downloadpostgresql-31fe394cd8959d5d98e3eaa7065a9b914f922ed9.tar.gz
postgresql-31fe394cd8959d5d98e3eaa7065a9b914f922ed9.zip
Include catalog/pg_type.h instead of manually extracting the interesting
oid values.
Diffstat (limited to 'src/interfaces/python/pgmodule.c')
-rw-r--r--src/interfaces/python/pgmodule.c18
1 files changed, 4 insertions, 14 deletions
diff --git a/src/interfaces/python/pgmodule.c b/src/interfaces/python/pgmodule.c
index 278d4124aaa..40c8ecc3326 100644
--- a/src/interfaces/python/pgmodule.c
+++ b/src/interfaces/python/pgmodule.c
@@ -27,24 +27,14 @@
*/
#include <Python.h>
-#include <postgres.h>
-#include <libpq-fe.h>
-#include <libpq/libpq-fs.h>
+#include "postgres.h"
+#include "libpq-fe.h"
+#include "libpq/libpq-fs.h"
+#include "catalog/pg_type.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-/* really bad stuff here - I'm so naughty */
-/* If you need to you can run mkdefines to get */
-/* current defines but it should not have changed */
-#define INT2OID 21
-#define INT4OID 23
-#define OIDOID 26
-#define FLOAT4OID 700
-#define FLOAT8OID 701
-#define CASHOID 790
-#define NUMERICOID 1700
-
static PyObject *PGError;
static const char *PyPgVersion = "3.2";