decode('hallo',???)

From: Fritz Lehmann-Grube <lehmannf(at)math(dot)TU-Berlin(dot)DE>
To: pgsql-sql(at)postgresql(dot)org
Subject: decode('hallo',???)
Date: 2002-08-27 20:23:18
Message-ID: 3D6BDFB6.8080905@math.tu-berlin.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


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

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Bruce Momjian 2002-08-27 20:27:56 Re: decode('hallo',???)
Previous Message Mathieu Arnold 2002-08-27 16:18:07 triggers and plpgsql question