| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | David Fetter <david(at)fetter(dot)org> |
| Cc: | pgsql-bugs(at)postgresql(dot)org |
| Subject: | Re: Regex bug |
| Date: | 2004-08-06 17:44:06 |
| Message-ID: | 20907.1091814246@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
David Fetter <david(at)fetter(dot)org> writes:
> On Fri, Aug 06, 2004 at 01:32:32PM -0400, Tom Lane wrote:
>> regression=# select length ('\000\125');
>> length
>> --------
>> 0
>> (1 row)
> Ah, right. John was testing his unicode patch, so there must be some
> magick underneath that distinguishes characters from bytes :)
> Cheers,
> D (feeling a little sheepish. again.)
It occurs to me that a case could be made for having text_in throw an
error if it sees '\000'. I cannot really see that there's any benefit
to the current behavior of (effectively) silently truncating the string.
Comments?
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Joe Conway | 2004-08-07 01:50:01 | Re: [PATCHES] [BUGS] casting strings to multidimensional arrays yields |
| Previous Message | David Fetter | 2004-08-06 17:38:27 | Re: Regex bug |