summaryrefslogtreecommitdiff
path: root/src/tutorial
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2016-02-16 21:08:15 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2016-02-16 21:08:15 -0500
commitb3ec98c8bdb2ceb6c0fe0cd15a6299bcd42cb1d3 (patch)
tree020076d93fab7c49c9eb5f18c528427a0c159dcb /src/tutorial
parent0d670b934fb2551f0affec8bacbc16d9ea3fdf47 (diff)
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.
Diffstat (limited to 'src/tutorial')
0 files changed, 0 insertions, 0 deletions