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

From: ishii(at)svr1(dot)postgresql(dot)org (Tatsuo Ishii)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Inserting 5 characters into char(10) does not produce 5 padding
Date: 2005-05-24 15:45:34
Message-ID: 20050524154534.82E1A52877@svr1.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

Modified Files:
--------------
pgsql/src/backend/parser:
parse_expr.c (r1.181 -> r1.182)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/parser/parse_expr.c.diff?r1=1.181&r2=1.182)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2005-05-24 16:45:23 pgsql: Add -I$(srcdir) to CPPFLAGS to make psqlscan.c compile in vpath
Previous Message Neil Conway 2005-05-24 08:05:37 pgsql: Add regression tests for previously-untested PL/Perl features.