From: | Michael Nolan <htfoot(at)gmail(dot)com> |
---|---|
To: | Andreas Kretschmer <akretschmer(at)spamfence(dot)net> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: question about age() |
Date: | 2013-08-29 20:28:23 |
Message-ID: | CAOzAqu+1MN7y+Uvk2N7SUcpowSZ0RUBPrG6qDe86X3P6mYGGmQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 8/29/13, Michael Nolan <htfoot(at)gmail(dot)com> wrote:
> On 8/29/13, Andreas Kretschmer <akretschmer(at)spamfence(dot)net> wrote:
>
>> I'm using 9.2.4.
>
>
> What is the content of the field 'birthday''? My guess is there's a
> null value for the field, in which case you are comparing two nulls.
Oops, missed seeing the first half of the post with the data.
It may be a function output type issue. Modifying the query as
follows works (in 8.2, which I'm still stuck on):
select * from birthday where age(birthday)::text != age
(current_date-1, birthday)::text;
--
Mike Nolan
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2013-08-29 20:39:09 | Re: question about age() |
Previous Message | Kevin Grittner | 2013-08-29 20:26:32 | Re: Is there any method to limit resource usage in PG? |