diff options
| author | Peter Eisentraut | 2010-06-29 00:18:11 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2010-06-29 00:18:11 +0000 |
| commit | a3401bea9cf74053610be900ba5773687c59045d (patch) | |
| tree | f4c75d4e238149209ece7f958bbd9bf1d033ee12 /src/pl | |
| parent | e849b49406c04e371da2289da31f2e63044cd32a (diff) | |
Use different function names for plpython3 handlers, to avoid clashes in
pg_pltemplate
This should have a catversion bump, but it's still being debated whether
it's worth it during beta.
Diffstat (limited to 'src/pl')
| -rw-r--r-- | src/pl/plpython/plpython.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/pl/plpython/plpython.c b/src/pl/plpython/plpython.c index c530b80597e..8877809220c 100644 --- a/src/pl/plpython/plpython.c +++ b/src/pl/plpython/plpython.c @@ -1,7 +1,7 @@ /********************************************************************** * plpython.c - python as a procedural language for PostgreSQL * - * $PostgreSQL: pgsql/src/pl/plpython/plpython.c,v 1.144 2010/06/10 04:05:01 tgl Exp $ + * $PostgreSQL: pgsql/src/pl/plpython/plpython.c,v 1.145 2010/06/29 00:18:11 petere Exp $ * ********************************************************************* */ @@ -244,6 +244,12 @@ typedef struct PLyResultObject /* function declarations */ +#if PY_MAJOR_VERSION >= 3 +/* Use separate names to avoid clash in pg_pltemplate */ +#define plpython_call_handler plpython3_call_handler +#define plpython_inline_handler plpython3_inline_handler +#endif + /* exported functions */ Datum plpython_call_handler(PG_FUNCTION_ARGS); Datum plpython_inline_handler(PG_FUNCTION_ARGS); |
