pgsql: Make plpython cope with funny characters in function names.
В списке pgsql-committers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | pgsql: Make plpython cope with funny characters in function names. |
| Дата | |
| Msg-id | E1aVrXh-0006ui-9a@gemulon.postgresql.org обсуждение |
| Список | pgsql-committers |
Make plpython cope with funny characters in function names. A function name that's double-quoted in SQL can contain almost any characters, but we were using that name directly as part of the name generated for the Python-level function, and Python doesn't like anything that isn't pretty much a standard identifier. To fix, replace anything that isn't an ASCII letter or digit with an underscore in the generated name. This doesn't create any risk of duplicate Python function names because we were already appending the function OID to the generated name to ensure uniqueness. Per bug #13960 from Jim Nasby. Patch by Jim Nasby, modified a bit by me. Back-patch to all supported branches. Branch ------ REL9_5_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/2ce19f8a57f5f5eba3d86dc8457d2e992df5af8f Modified Files -------------- src/pl/plpython/expected/plpython_test.out | 8 ++++---- src/pl/plpython/plpy_procedure.c | 10 ++++++++++ src/pl/plpython/sql/plpython_test.sql | 6 +++--- 3 files changed, 17 insertions(+), 7 deletions(-)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера