Re: trouble caused by change in 7.3 handling of '' in integer - Mailing list pgsql-general

From Bruce Momjian
Subject Re: trouble caused by change in 7.3 handling of '' in integer
Date
Msg-id 200212182227.gBIMRVs23553@candle.pha.pa.us
Whole thread Raw
In response to trouble caused by change in 7.3 handling of '' in integer context  (Vivek Khera <khera@kcilink.com>)
Responses Re: trouble caused by change in 7.3 handling of '' in integer  (Vivek Khera <khera@kcilink.com>)
List pgsql-general
Oh, that's bad.  We tightened up the handling of '' as 0 because we
considered it too error-prone to assume they mean zero when they pass
''.

While we do like the new tightness, we don't want to make things harder
for people porting the code.

How about if I give you a patch against 7.3 that allows '' as 0, and you
ask if the author can distribute it and get his code changed for 7.4?

---------------------------------------------------------------------------

Vivek Khera wrote:
> I see in the 7.3 HISTORY file this:
>
>      * An empty string ('') is no longer allowed as the input into an
>        integer field. Formerly, it was silently interpreted as 0.
>
> This is causing major issues with the Request Tracker program
> <http://www.bestpractical.com/rt>.
>
> The author has gone so far as to notify all current users that
> Postgres 7.3 is not usable with RT, and to stick to 7.2, or to use
> MySQL.
>
> Apparently, there is a lot of work that will be necessary to retrofit
> RT to this change.  Is there any way possible to make this a logged
> warning rather than a fatal so that there is time to transition the RT
> code?  I didn't see any notice in any prior release of the upcoming
> change.
>
> This unfortunately locks me into the 7.2 line until (if) RT can be
> fixed up, and I could really use the 7.3 improvements for my other
> applications.
>
> Thanks.
>
> --
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Vivek Khera, Ph.D.                Khera Communications, Inc.
> Internet: khera@kciLink.com       Rockville, MD       +1-240-453-8497
> AIM: vivekkhera Y!: vivek_khera   http://www.khera.org/~vivek/
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
>

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-general by date:

Previous
From: "scott.marlowe"
Date:
Subject: Re: trouble caused by change in 7.3 handling of '' in
Next
From: Bruce Momjian
Date:
Subject: Re: trouble caused by change in 7.3 handling of '' in