bug in working with TEXT constants ? - Mailing list pgsql-sql

From sad
Subject bug in working with TEXT constants ?
Date
Msg-id 200310281153.54160.sad@bankir.ru
Whole thread Raw
Responses Re: bug in working with TEXT constants ?
Re: bug in working with TEXT constants ?
List pgsql-sql
Good day.

AFAIK PostgreSQL provides the type TEXT with 4-byte prefix length
which is distinct to C's zero-terminated  (char *)
That's very good.
Then I expect natural possibility to store texts having zero characters.

try
SELECT 'abc\0de';
SELECT length('abc\0de');
or insert such a value into another table and then select....

you'll see a classical result just like you are using (char *).
i suppose it is a little bug deep inside like using a memcpy() or such...

Am i wrong?



pgsql-sql by date:

Previous
From: George Essig
Date:
Subject: Re: connectby
Next
From: "Kumar"
Date:
Subject: Using % type in Parameters