Improve the error message introduced in commit 87ce27de696.
[pgsql.git] / src / pl / plpython / plpy_cursorobject.h
blobe4d2c0ed2532a632f0c24665b73e7f7f21538008
1 /*
2 * src/pl/plpython/plpy_cursorobject.h
3 */
5 #ifndef PLPY_CURSOROBJECT_H
6 #define PLPY_CURSOROBJECT_H
8 #include "plpy_typeio.h"
11 typedef struct PLyCursorObject
13 PyObject_HEAD
14 char *portalname;
15 PLyDatumToOb result;
16 bool closed;
17 MemoryContext mcxt;
18 } PLyCursorObject;
20 extern void PLy_cursor_init_type(void);
21 extern PyObject *PLy_cursor(PyObject *self, PyObject *args);
22 extern PyObject *PLy_cursor_plan(PyObject *ob, PyObject *args);
24 #endif /* PLPY_CURSOROBJECT_H */