phpgroupware-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Phpgroupware-developers] Patches for PostgreSQL??


From: Dani Oderbolz
Subject: Re: [Phpgroupware-developers] Patches for PostgreSQL??
Date: Fri, 21 Nov 2003 17:24:41 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624

Chris Weiss wrote:

I'm not sure about the pg status, but in the plain ol' SQL '' != NULL.  Seems
to me that pg doing somehting wrong, if you save '' it should not be null in
the table, it should be an empty string.
No, I am not talking about an insert.
I am talking about the fact that when you do
where id='' you are in fact comparing a number (id is int or something) to
a string ('' is a string). But Postgres cannot (or wouldnt) convert '' to a number.
Therefore, I am converting it to NULL, which is valid.

Regards,
Dani





reply via email to

[Prev in Thread] Current Thread [Next in Thread]