]> 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 15:45:34 +0000 (15:45 +0000)
committerTatsuo Ishii <ishii@postgresql.org>
Tue, 24 May 2005 15:45:34 +0000 (15:45 +0000)
commita90e9d662e15b348aab68fd8d725a029e60ae2fa
treefaccfb7294ff442fc34c24175c9c0798a0d98848
parent11a0c3741f3c41a5dadaa6788e02ba58a6f7b0a2
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