pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvar Freude <alvar@a-blast.org>
To: pgsql-admin@postgresql.org
Cc: Godshall Michael <Michael_Godshall@gmachs.com>
Subject: Re: Cast text to bytea
Date: Wed, 03 Dec 2003 09:33:41 +0100
Message-ID: <1188410000.1070440421@gnarzelwicht.delirium-arts.de> (raw)
In-Reply-To: <A596FA3368757645AF862C701495CA0001B44A38@hor1mspmx01.gmachs.com>
References: <A596FA3368757645AF862C701495CA0001B44A38@hor1mspmx01.gmachs.com >

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

uups, why I wrote the originating mail  to pgsql-admin? Sorry!

- -- Godshall Michael <Michael_Godshall@gmachs.com> wrote:
 
> Have you seen this? 
> http://www.postgresql.org/docs/current/static/datatype-binary.html 

yes, but this only describe the bytea type, not how to cast some text. Or I
missed something ;) ...


> Maybe you need some backslashes? 

this also doesn't help:

 odem=> SELECT 'abc'::text::bytea;
 ERROR:  Cannot cast type text to bytea
 odem=> SELECT '\000'::text::bytea;
 ERROR:  Cannot cast type text to bytea


Ciao
  Alvar

- -- 
** Alvar C.H. Freude -- http://alvar.a-blast.org/
**   Berufsverbot? http://odem.org/aktuelles/staatsanwalt.de.html
**   ODEM.org-Tour: http://tour.odem.org/
**   Informationsgesellschaft: http://www.wsis-koordinierungskreis.de/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQE/zZ/lOndlH63J86wRAp6MAKCJrV6S8b0LKF3xpC9EHrEhz+/uVgCgukpf
sUZsrP3+u2Sxn0goxTGMAxY=
=+bY9
-----END PGP SIGNATURE-----




view thread (3+ messages)

Message-ID: <1188410000.1070440421@gnarzelwicht.delirium-arts.de>
Permalink:  ../1188410000.1070440421@gnarzelwicht.delirium-arts.de/
Also on:    postgresql.org/message-id/1188410000.1070440421@gnarzelwicht.delirium-arts.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 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-admin@postgresql.org
  Cc: alvar@a-blast.org, Michael_Godshall@gmachs.com
  Subject: Re: Cast text to bytea
  In-Reply-To: <1188410000.1070440421@gnarzelwicht.delirium-arts.de>
  References: <1188410000.1070440421@gnarzelwicht.delirium-arts.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