|
1 | 1 | /********************************************************************** |
2 | 2 | * plpython.c - python as a procedural language for PostgreSQL |
3 | 3 | * |
4 | | - * $PostgreSQL: pgsql/src/pl/plpython/plpython.c,v 1.137 2010/02/14 18:42:19 rhaas Exp $ |
| 4 | + * $PostgreSQL: pgsql/src/pl/plpython/plpython.c,v 1.138 2010/02/18 23:50:06 tgl Exp $ |
5 | 5 | * |
6 | 6 | ********************************************************************* |
7 | 7 | */ |
@@ -2763,7 +2763,7 @@ PLy_spi_prepare(PyObject *self, PyObject *args) |
2763 | 2763 | PyObject *volatile optr = NULL; |
2764 | 2764 | char *query; |
2765 | 2765 | void *tmpplan; |
2766 | | - MemoryContext oldcontext; |
| 2766 | + volatile MemoryContext oldcontext; |
2767 | 2767 |
|
2768 | 2768 | /* Can't execute more if we have an unhandled error */ |
2769 | 2769 | if (PLy_error_in_progress) |
@@ -2934,7 +2934,7 @@ PLy_spi_execute_plan(PyObject *ob, PyObject *list, long limit) |
2934 | 2934 | int i, |
2935 | 2935 | rv; |
2936 | 2936 | PLyPlanObject *plan; |
2937 | | - MemoryContext oldcontext; |
| 2937 | + volatile MemoryContext oldcontext; |
2938 | 2938 |
|
2939 | 2939 | if (list != NULL) |
2940 | 2940 | { |
@@ -3081,7 +3081,7 @@ static PyObject * |
3081 | 3081 | PLy_spi_execute_query(char *query, long limit) |
3082 | 3082 | { |
3083 | 3083 | int rv; |
3084 | | - MemoryContext oldcontext; |
| 3084 | + volatile MemoryContext oldcontext; |
3085 | 3085 |
|
3086 | 3086 | oldcontext = CurrentMemoryContext; |
3087 | 3087 | PG_TRY(); |
@@ -3116,7 +3116,7 @@ static PyObject * |
3116 | 3116 | PLy_spi_execute_fetch_result(SPITupleTable *tuptable, int rows, int status) |
3117 | 3117 | { |
3118 | 3118 | PLyResultObject *result; |
3119 | | - MemoryContext oldcontext; |
| 3119 | + volatile MemoryContext oldcontext; |
3120 | 3120 |
|
3121 | 3121 | result = (PLyResultObject *) PLy_result_new(); |
3122 | 3122 | Py_DECREF(result->status); |
|
0 commit comments