diff options
author | Bruce Momjian <bruce@momjian.us> | 2001-05-25 15:48:33 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2001-05-25 15:48:33 +0000 |
commit | 06a8346c84bb67e4fe0448a1f784ee91b1b7bad1 (patch) | |
tree | a9cadfe915bcb7e843d977751c14993cfd1d7df2 /src/pl/plpython/plpython.c | |
parent | f6923ff3ac8320a82f4bb070b09e9b1fed3d91c9 (diff) | |
download | postgresql-06a8346c84bb67e4fe0448a1f784ee91b1b7bad1.tar.gz postgresql-06a8346c84bb67e4fe0448a1f784ee91b1b7bad1.zip |
See attached for a small patch that enables plpython to build cleanly
under Cygwin. This patch together with my previous Python patch:
http://postgresql.readysetnet.com/mhonarc/pgsql-patches/2001-05/msg00075.htm
l
enables full Python support (i.e., configure --with-python) for Cygwin
PostgreSQL.
Jason Tishler
Diffstat (limited to 'src/pl/plpython/plpython.c')
-rw-r--r-- | src/pl/plpython/plpython.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/pl/plpython/plpython.c b/src/pl/plpython/plpython.c index 865ddb3aac6..dea0dc285f8 100644 --- a/src/pl/plpython/plpython.c +++ b/src/pl/plpython/plpython.c @@ -1,4 +1,4 @@ -/* $Header: /cvsroot/pgsql/src/pl/plpython/plpython.c,v 1.2 2001/05/12 01:30:30 petere Exp $ */ +/* $Header: /cvsroot/pgsql/src/pl/plpython/plpython.c,v 1.3 2001/05/25 15:48:33 momjian Exp $ */ /* * plpython.c - python as a procedural language for PostgreSQL @@ -1534,7 +1534,7 @@ static PyObject *PLy_spi_execute_fetch_result(SPITupleTable *, int, int); PyTypeObject PLy_PlanType = { - PyObject_HEAD_INIT(&PyType_Type) + PyObject_HEAD_INIT(NULL) 0, /*ob_size*/ "PLyPlan", /*tp_name*/ sizeof(PLyPlanObject), /*tp_size*/ @@ -1577,7 +1577,7 @@ PySequenceMethods PLy_result_as_sequence = { }; PyTypeObject PLy_ResultType = { - PyObject_HEAD_INIT(&PyType_Type) + PyObject_HEAD_INIT(NULL) 0, /*ob_size*/ "PLyResult", /*tp_name*/ sizeof(PLyResultObject), /*tp_size*/ @@ -2287,6 +2287,7 @@ PLy_init_plpy(void) /* initialize plpy module */ + PLy_PlanType.ob_type = PLy_ResultType.ob_type = &PyType_Type; plpy = Py_InitModule("plpy", PLy_methods); plpy_dict = PyModule_GetDict(plpy); |