Re: have you feel anything when you read this ?

From: Achilleus Mantzios <achill(at)matrix(dot)gatewaynet(dot)com>
To: "Eugene E(dot)" <sad(at)bankir(dot)ru>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, <pgsql-sql(at)postgresql(dot)org>
Subject: Re: have you feel anything when you read this ?
Date: 2006-03-20 13:26:48
Message-ID: Pine.LNX.4.44.0603201522410.22894-100000@matrix.gatewaynet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

O Eugene E. έγραψε στις Mar 20, 2006 :

> Peter Eisentraut wrote:
> > Eugene E. wrote:
> >
> >>the bytea does not output NULs at all.
> >>don't mock me.
> >
> >
> > peter=# create table test (a bytea);
> > CREATE TABLE
> > peter=# insert into test values ('a\\000b');
> > INSERT 0 1
> > peter=# select * from test;
> > a
> > --------
> > a\000b
>
> are you kidding ?
> where is NUL-byte in "a\000b" ???

Null byte is a byte of value zero,
and allow me to say that the \000 in "a\000b" is exactly this.
A NULL value is commonly used in C to terminate a pointer's data.

>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faq
>

--
-Achilleus

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Richard Huxton 2006-03-20 14:17:27 Re: update before drop causes OID problems in transaction?
Previous Message Achilleus Mantzios 2006-03-20 13:21:59 Re: have you feel anything when you read this ?