[GENERAL] date - null casted to integer?

2009-03-03 Thread Роман Маширов
Hi! Excuse me, if this been discussed before, but following thing seems to me a little bit strange: select '2009-01-12'::date - null::date < '1 day'::interval; ERROR: operator does not exist: integer < interval LINE 1: select '2009-11-12'::date - null::date < '1 day'::interval;

Re: [GENERAL] date - null casted to integer?

2009-03-03 Thread Роман Маширов
Ups, sorry, I'm idiot... changes from the default casting to text is really helpful in clearing brain bugs... Роман Маширов wrote: Hi! Excuse me, if this been discussed before, but following thing seems to me a little bit strange: select '2009-01-12'::date - null::date < '1 day'::interval;

Re: [GENERAL] date null

1998-10-26 Thread Ulf Mehlig
Morelli 'ZioBudda' Davide Michel wrote: > Hi, how can control in a "select" if a date is not null? [...] I > want to select only tuples in which notifica1 or notifica2 or > notifica3 are not null. did you try the following? select * from prestito where notifica1 is not null or

RE: [GENERAL] date null

1998-10-23 Thread Taral
[mailto:[EMAIL PROTECTED]]On Behalf Of ZioBudda > Sent: Friday, October 23, 1998 7:47 AM > To: [EMAIL PROTECTED] > Subject: [GENERAL] date null > > > Hi, how can control in a "select" if a date is not null?

[GENERAL] date null

1998-10-23 Thread ZioBudda
Hi, how can control in a "select" if a date is not null? I have this table: Table= prestito +--+--+---+ | Field | Type| Length| +--+--