pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ragnar <gnari@hive.is>
To: Bart Degryse <Bart.Degryse@indicator.be>
Cc: pgsql-sql@postgresql.org
Subject: Re: UNICODE and PL/PGSQL
Date: Mon, 27 Nov 2006 14:37:31 +0000
Message-ID: <1164638251.27070.45.camel@localhost.localdomain> (raw)
In-Reply-To: <456AD17A020000300000FB60@webaccess.indicator.be>
References: <456AD17A020000300000FB60@webaccess.indicator.be>

On mán, 2006-11-27 at 11:52 +0100, Bart Degryse wrote:
> Dear all,
> This works: SELECT '\x65'; => it returns the letter 'e'.

yes, but:
test=# select '\x'||'65';
 ?column?
----------
 x65
(1 row)


> When I do the following in PL/PGSQL ....

>   FOR i IN 101..101 LOOP
>     charset := charset || '\x' || to_hex(i);
>   END LOOP;


gnari





view thread (16+ messages)  latest in thread

Message-ID: <1164638251.27070.45.camel@localhost.localdomain>
Permalink:  ../1164638251.27070.45.camel@localhost.localdomain/
Also on:    postgresql.org/message-id/1164638251.27070.45.camel@localhost.localdomain

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: gnari@hive.is, Bart.Degryse@indicator.be
  Subject: Re: UNICODE and PL/PGSQL
  In-Reply-To: <1164638251.27070.45.camel@localhost.localdomain>

* 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