Re: how to read bytea field

From: Richard Huxton <dev(at)archonet(dot)com>
To: marcelo Cortez <jmdc_marcelo(at)yahoo(dot)com(dot)ar>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: how to read bytea field
Date: 2007-01-24 14:58:38
Message-ID: 45B7741E.8000808@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

marcelo Cortez wrote:
> folks
>
>
> my table
>
> CREATE TABLE pblfield
> (
> id_ integer NOT NULL,
> value_field bytea,
> name character varying(128),
> osset integer,
> length integer,
> version_ integer,
> inst_class_ character varying(128),
> CONSTRAINT pblfield_pkey PRIMARY KEY (id_)
> )
>
> insert into pblfield( id_ , value_field ) values( 1 ,
> encode(E'\\000\\001', 'escape') ) ;

NO! Go back and read what everyone is saying about the direction
decode/encode work in.

You're using them the wrong way around.

--
Richard Huxton
Archonet Ltd

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message marcelo Cortez 2007-01-24 15:15:23 Re: how to read bytea field
Previous Message marcelo Cortez 2007-01-24 14:54:11 Re: how to read bytea field