Inserting 5 characters into char(10) does not produce 5 padding spaces
authorTatsuo Ishii <ishii@postgresql.org>
Tue, 24 May 2005 23:15:05 +0000 (23:15 +0000)
committerTatsuo Ishii <ishii@postgresql.org>
Tue, 24 May 2005 23:15:05 +0000 (23:15 +0000)
commitde212f4910dd9b75641a572b68a3fec5509974e3
tree6cd5b20630607493e8544a9f6c987ec8086fca07
parent0a7b3a3649c7a03c432ef172f6b9efb3adc52868
Inserting 5 characters into char(10) does not produce 5 padding spaces
if they are two-byte multibyte characters. Same thing can be happen
if octet_length(multibyte_chars) == n where n is char(n).
Long standing bug since 7.3 days. Per report and fix from Yoshiyuki Asaba.
src/backend/parser/parse_expr.c