patch: Use pg_mbcliplen for truncation in text-to-name conversion

From: Karl Schnaitter <karlsch(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: patch: Use pg_mbcliplen for truncation in text-to-name conversion
Date: 2012-05-25 06:56:01
Message-ID: 4FBF2D01.2010100@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

The text_name function was truncating its input string to the first
NAMEDATALEN-1 bytes, which is wrong if the string has multi-byte
characters. This patch changes it to use pg_mbcliplen, following
the namein function.

Attachment Content-Type Size
text_to_name.patch text/plain 1.7 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2012-05-25 07:36:59 proposal: features for simpler integration psql to bash
Previous Message Ondrej Ivanič 2012-05-25 05:12:43 Re: pg_dump and thousands of schemas