pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Schmitt <david@dasz.at>
To: pgsql-bugs@postgresql.org
Subject: BUG #5869: postgresql corrupts unquoted non-ascii chars in column aliases
Date: Tue, 8 Feb 2011 07:19:37 GMT
Message-ID: <201102080719.p187JbmO008217@wwwmaster.postgresql.org> (raw)


The following bug has been logged online:

Bug reference:      5869
Logged by:          David Schmitt
Email address:      david@dasz.at
PostgreSQL version: 8.4.5
Operating system:   Windows 7
Description:        postgresql corrupts unquoted non-ascii chars in column
aliases
Details: 

Example query:

  SELECT column as zurück FROM table;

results in corruption of the "ü" (umlaut u). This causes Npgsql to fail to
match up the columns in the result set (see
http://pgfoundry.org/tracker/?func=detail&aid=1010988&group_id=1000140&atid=
590) and pgadminIII doesn't display the alias in the result pane.

The same query works with the same tools against a 8.4.5 running on Debian
squeeze.

If the alias is quoted like this:

  SELECT column as "zurück" FROM table;

the query also works against the DB running on windows.

PS: I tried downloading the newest version of the one click installer for
windows from EnterpriseDB, and noticed that since recently that site
requires a registration :-(



view thread (5+ messages)  latest in thread

Message-ID: <201102080719.p187JbmO008217@wwwmaster.postgresql.org>
Permalink:  ../201102080719.p187JbmO008217@wwwmaster.postgresql.org/
Also on:    postgresql.org/message-id/201102080719.p187JbmO008217@wwwmaster.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: david@dasz.at
  Subject: Re: BUG #5869: postgresql corrupts unquoted non-ascii chars in column aliases
  In-Reply-To: <201102080719.p187JbmO008217@wwwmaster.postgresql.org>
  References: <201102080719.p187JbmO008217@wwwmaster.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox