| From: | Alvar Freude <alvar(at)a-blast(dot)org> | 
|---|---|
| To: | pgsql-admin(at)postgresql(dot)org | 
| Cc: | Godshall Michael <Michael_Godshall(at)gmachs(dot)com> | 
| Subject: | Re: Cast text to bytea | 
| Date: | 2003-12-03 08:33:41 | 
| Message-ID: | 1188410000.1070440421@gnarzelwicht.delirium-arts.de | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-admin | 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
uups, why I wrote the originating mail to pgsql-admin? Sorry!
- -- Godshall Michael <Michael_Godshall(at)gmachs(dot)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-----
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Ferdinand Smit | 2003-12-03 10:54:48 | Index problems | 
| Previous Message | Janko Richter | 2003-12-03 08:14:39 | Re: downgrading to 7.3.2 from 7.4.1 under Cygwin |