Re: Error when comparing an integer to an empty string.

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Error when comparing an integer to an empty string.
Date: 2002-11-21 17:07:55
Message-ID: 20021121170755.GA4228@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Nov 21, 2002 at 17:30:10 +0100,
David Pradier <dpradier(at)apartia(dot)fr> wrote:
> Hi!
>
> I'm new on this list, my name is David Pradier, and i'm french.
>
> I'm currently trying the new postgresql 7.3rc1, and i've noticed that if
> i compared an integer to an empty string, i ran in an error.
>
> Is this a bug or a feature of the new 7.3 version ?
> Is there a purpose ?

What number do you expect '' to represent?

Probably you either want to use:
= '0'
or
is null
depending on what you are really trying to do.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Louis-David Mitterrand 2002-11-21 17:43:44 Re: Error when comparing an integer to an empty string.
Previous Message David Pradier 2002-11-21 16:30:10 Error when comparing an integer to an empty string.