Re: casting zero-length strings

From: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Neil Conway <neilc(at)samurai(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: casting zero-length strings
Date: 2004-02-17 05:03:47
Message-ID: 4031A0B3.3010502@familyhealth.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> Yes, surely, unless someone wants to argue for reverting that change
> to pg_atoi. I can't see a reason for having them act inconsistently.
>
> While we are at it we should make sure these functions are all on the
> same page about allowing leading/trailing whitespace. I seem to recall
> that the spec says somewhere that both should be allowed ... but right
> now I do not think we allow trailing whitespace.

Either way, we should make them a WARNING for 7.5, then error in 7.6.
The pg_atoi change was a bit disastrous because of instant error I thought.

Chris

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2004-02-17 06:51:38 Re: No Timeout in SELECT..FOR UPDATE
Previous Message Tom Lane 2004-02-17 04:26:42 Re: casting zero-length strings