diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2012-05-25 17:34:51 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2012-05-25 17:34:51 -0400 |
commit | d3b97d1488ba868f6bab12eeaf0b9ae75fad2566 (patch) | |
tree | c0baa7032cd63ff764b74b51524aac000b230d21 /src/backend/access/gist/gistproc.c | |
parent | 73cc7d3b240e1d46b1996382e5735a820f8bc3f7 (diff) | |
download | postgresql-d3b97d1488ba868f6bab12eeaf0b9ae75fad2566.tar.gz postgresql-d3b97d1488ba868f6bab12eeaf0b9ae75fad2566.zip |
Fix string truncation to be multibyte-aware in text_name and bpchar_name.
Previously, casts to name could generate invalidly-encoded results.
Also, make these functions match namein() more exactly, by consistently
using palloc0() instead of ad-hoc zeroing code.
Back-patch to all supported branches.
Karl Schnaitter and Tom Lane
Diffstat (limited to 'src/backend/access/gist/gistproc.c')
0 files changed, 0 insertions, 0 deletions