Re: casting zero-length strings - Mailing list pgsql-hackers

From Christopher Kings-Lynne
Subject Re: casting zero-length strings
Date
Msg-id 4031A0B3.3010502@familyhealth.com.au
Whole thread Raw
In response to Re: casting zero-length strings  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: casting zero-length strings  (Neil Conway <neilc@samurai.com>)
List 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



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: casting zero-length strings
Next
From: "Simon Riggs"
Date:
Subject: Re: No Timeout in SELECT..FOR UPDATE