]> granicus.if.org Git - postgresql/commit
Inserting 5 characters into char(10) does not produce 5 padding spaces
authorTatsuo Ishii <ishii@postgresql.org>
Tue, 24 May 2005 23:52:02 +0000 (23:52 +0000)
committerTatsuo Ishii <ishii@postgresql.org>
Tue, 24 May 2005 23:52:02 +0000 (23:52 +0000)
commit8f5702ebd514faf5ddcd4c3443567bfa9bd9f98a
treec9a5aae10c2126a01679de5e1276927dd485c2df
parente3d0bd8d48a4ba9aa236e6cc901676ad0198ea95
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