From: | Brice Ruth <brice(at)webprojkt(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org, pgsql-jdbc(at)postgresql(dot)org |
Subject: | Re: Re: (Update) Implicit smallint to boolean conversion? |
Date: | 2001-02-15 14:32:34 |
Message-ID: | 3A8BE883.624FE5D4@webprojkt.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-jdbc |
True ... good thing that's not what I set it to :) I used:
(c == '1') which is more appropriate, I guess. :) That way 'f' will
still evaluate to false.
-Brice
Martijn van Oosterhout wrote:
>
> Brice Ruth wrote:
> > Fixes the problem. This could probably be improved to:
> >
> > return ((c == 't') || (c == 'T') || (c != '0'));
> >
> > and in that way any result is 'true' and only '0' returns false (for SMALLINT).
>
> That statement doesn't have the effect you want :)
>
> 'f' != '0'
>
> --
> Martijn van Oosterhout <kleptog(at)cupid(dot)suninternet(dot)com>
> http://cupid.suninternet.com/~kleptog/
--
Brice Ruth
WebProjkt, Inc.
VP, Director of Internet Technology
http://www.webprojkt.com/
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2001-02-15 14:39:49 | Re: Postmaster crashes |
Previous Message | [Bad-Knees] | 2001-02-15 14:00:59 | initdb: pg_encoding failed |
From | Date | Subject | |
---|---|---|---|
Next Message | Manika dey | 2001-02-15 17:21:42 | data trnsfer through Web. |
Previous Message | Raymond Chui | 2001-02-13 12:49:20 | Re: How to make PostgreSQL JDBC drive get PGTZ? |