]> granicus.if.org Git - postgresql/commit
New improved version of bpcharin() may have got the truncation case
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 1 Jun 2001 17:49:17 +0000 (17:49 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 1 Jun 2001 17:49:17 +0000 (17:49 +0000)
commit7c0c9b3ccec4718c1c7cef7b5282fd56b727d965
treefe6b73c413c50920a15d9efd65b850e44552b5a1
parent597ca67e5eb42521dd41fc385bc10e450b81630d
New improved version of bpcharin() may have got the truncation case
right, but it failed to get the padding case right.

This was obscured by subsequent application of bpchar() in all but one
regression test case, and that one didn't fail in an obvious way ---
trailing blanks are hard to see.  Add another test case to make it
more obvious if it breaks again.
src/backend/utils/adt/varchar.c
src/test/regress/expected/strings.out
src/test/regress/sql/strings.sql