pgsql: Inserting 5 characters into char(10) does not produce 5 padding - Mailing list pgsql-committers

From ishii@svr1.postgresql.org (Tatsuo Ishii)
Subject pgsql: Inserting 5 characters into char(10) does not produce 5 padding
Date
Msg-id 20050524231505.C81FB5288A@svr1.postgresql.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
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.

Tags:
----
REL7_4_STABLE

Modified Files:
--------------
    pgsql/src/backend/parser:
        parse_expr.c (r1.163.2.1 -> r1.163.2.2)

(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/parser/parse_expr.c.diff?r1=1.163.2.1&r2=1.163.2.2)

pgsql-committers by date:

Previous
From: ishii@svr1.postgresql.org (Tatsuo Ishii)
Date:
Subject: pgsql: Inserting 5 characters into char(10) does not produce 5 padding
Next
From: ishii@svr1.postgresql.org (Tatsuo Ishii)
Date:
Subject: pgsql: Inserting 5 characters into char(10) does not produce 5 padding