Improve the error message introduced in commit 87ce27de696.
[pgsql.git] / src / pl / plpython / plpy_resultobject.h
blob978c4cc176cc6a279e6c78d9f52f615d15ee2e1f
1 /*
2 * src/pl/plpython/plpy_resultobject.h
3 */
5 #ifndef PLPY_RESULTOBJECT_H
6 #define PLPY_RESULTOBJECT_H
8 #include "access/tupdesc.h"
10 #include "plpython.h"
13 typedef struct PLyResultObject
15 PyObject_HEAD
16 /* HeapTuple *tuples; */
17 PyObject *nrows; /* number of rows returned by query */
18 PyObject *rows; /* data rows, or empty list if no data
19 * returned */
20 PyObject *status; /* query status, SPI_OK_*, or SPI_ERR_* */
21 TupleDesc tupdesc;
22 } PLyResultObject;
24 extern void PLy_result_init_type(void);
25 extern PyObject *PLy_result_new(void);
27 #endif /* PLPY_RESULTOBJECT_H */