Make text <=> char conversion functions convert zero character to and
authorTom Lane
Mon, 28 May 2001 21:58:32 +0000 (21:58 +0000)
committerTom Lane
Mon, 28 May 2001 21:58:32 +0000 (21:58 +0000)
commit8a3b80deb03b3d4be7fb1ffbe6b10f49bc0253db
tree63cc761f8b111b25a4fe7d9257a04f26569e39c9
parenta056f14be0a22834b5fa7b90c0c5ea1ec42f2a29
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.
src/backend/utils/adt/char.c