From: sad <sad@bankir.ru>
To: psql <pgsql-sql@postgresql.org>
Subject: bug in working with TEXT constants ?
Date: Tue, 28 Oct 2003 11:53:54 +0000
Message-ID: <200310281153.54160.sad@bankir.ru> (raw)
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?
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: sad@bankir.ru
Subject: Re: bug in working with TEXT constants ?
In-Reply-To: <200310281153.54160.sad@bankir.ru>
* 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