Re: reject empty string in float[48], oid

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Neil Conway <neilc(at)samurai(dot)com>
Cc: pgsql-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: reject empty string in float[48], oid
Date: 2005-02-11 01:53:01
Message-ID: 5330.1108086781@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Neil Conway <neilc(at)samurai(dot)com> writes:
> This patch changes the input routines for float4, float8 and oid to
> reject empty strings (rather than treating them as "0"). In 8.0 we issue
> a warning about this behavior and indicate that the input will not be
> accepted by a future release, so it seems reasonable to disallow the
> input in 8.1. The patch also updates the regression tests.

If you're going to add regression tests, how about testing the case of a
non-empty-but-all-whitespace string?

regards, tom lane

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Neil Conway 2005-02-11 01:57:30 Re: reject empty string in float[48], oid
Previous Message Peter Eisentraut 2005-02-11 01:53:00 Re: Clarify use of NOW() in pl/pgsql docs