pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fritz Lehmann-Grube <lehmannf@math.TU-Berlin.DE>
To: pgsql-sql@postgresql.org
Subject: decode('hallo',???)
Date: Tue, 27 Aug 2002 22:23:18 +0200
Message-ID: <3D6BDFB6.8080905@math.tu-berlin.de> (raw)


hallo somebody,

what do the functions "encode" and "decode" expect as arguments ?
I was puzzled when I got the following:

pgdocsample=# \encoding
SQL_ASCII
pgdocsample=# select decode('hallo','SQL_ASCII');
ERROR:  No such encoding as 'SQL_ASCII'

What have I understood wrong ?

Fritz




view thread (2+ messages)  latest in thread

Message-ID: <3D6BDFB6.8080905@math.tu-berlin.de>
Permalink:  ../3D6BDFB6.8080905@math.tu-berlin.de/
Also on:    postgresql.org/message-id/3D6BDFB6.8080905@math.tu-berlin.de

 · 

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: lehmannf@math.TU-Berlin.DE
  Subject: Re: decode('hallo',???)
  In-Reply-To: <3D6BDFB6.8080905@math.tu-berlin.de>

* 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