New improved version of bpcharin() may have got the truncation case
Tom Lane <tgl@sss.pgh.pa.us>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/varchar.c | modified | +25 −26 |
| src/test/regress/expected/strings.out | modified | +9 −3 |
| src/test/regress/sql/strings.sql | modified | +2 −0 |