mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
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.
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user