Inserting 5 characters into char(10) does not produce 5 padding spaces

Tatsuo Ishii <ishii@postgresql.org>

Commit: 8f5702ebd514faf5ddcd4c3443567bfa9bd9f98a
Author: Tatsuo Ishii <ishii@postgresql.org>
Date: 2005-05-24T23:52:02Z
Releases: 7.3.11
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.

Files

PathChange+/−
src/backend/parser/parse_expr.c modified +9 −2