Skip site navigation (1) Skip section navigation (2)

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: (view raw, whole thread or download thread mbox)
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


pgsql-patches by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group