Make text <=> char conversion functions convert zero character to and

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 8a3b80deb03b3d4be7fb1ffbe6b10f49bc0253db
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2001-05-28T21:58:32Z
Releases: 7.2.1
Make text <=> char conversion functions convert zero character to and
from an empty text string.  This makes them consistent with the de facto
behavior of type char's I/O conversion functions, and avoids generating
text values with embedded nulls, which confuse many text operators.

Files

PathChange+/−
src/backend/utils/adt/char.c modified +33 −5