| 65 | } |
| 66 | |
| 67 | PyObject * |
| 68 | PLy_result_new(void) |
| 69 | { |
| 70 | PLyResultObject *ob; |
| 71 | |
| 72 | if ((ob = PyObject_New(PLyResultObject, &PLy_ResultType)) == NULL) |
| 73 | return NULL; |
| 74 | |
| 75 | /* ob->tuples = NULL; */ |
| 76 | |
| 77 | Py_INCREF(Py_None); |
| 78 | ob->status = Py_None; |
| 79 | ob->nrows = PyInt_FromLong(-1); |
| 80 | ob->rows = PyList_New(0); |
| 81 | ob->tupdesc = NULL; |
| 82 | if (!ob->rows) |
| 83 | { |
| 84 | Py_DECREF(ob); |
| 85 | return NULL; |
| 86 | } |
| 87 | |
| 88 | return (PyObject *) ob; |
| 89 | } |
| 90 | |
| 91 | static void |
| 92 | PLy_result_dealloc(PyObject *arg) |
no outgoing calls
no test coverage detected