Re: Strange? BETWEEN behaviour. - Mailing list pgsql-general

From Francisco Olarte
Subject Re: Strange? BETWEEN behaviour.
Date
Msg-id CA+bJJbzeiBE30jDjM92H5iLErJrADmEgO7T0+gGL-rHoepxzPw@mail.gmail.com
Whole thread Raw
In response to Re: Strange? BETWEEN behaviour.  (William Ivanski <william.ivanski@gmail.com>)
List pgsql-general
Bottom quoting makes it difficult to reply properly, so reformated a bit:

On Thu, Oct 20, 2016 at 2:02 PM, William Ivanski
<william.ivanski@gmail.com> wrote:
> Em qui, 20 de out de 2016 às 09:52, Bjørn T Johansen <btj@havleik.no>
> escreveu:
>> date is of type timestamp.
> select * from table where date = '2016/10/20'::date

I think is the other way round ( date::date = '2016/10/20' ).

To me it seems yours will do:
date = '2016/10/20'::date::timestamp ( = 2016/10/20 00:00:00 )
( widening conversion )

Francisco Olarte.


pgsql-general by date:

Previous
From: vinny
Date:
Subject: Re: Strange? BETWEEN behaviour.
Next
From: Francisco Olarte
Date:
Subject: Re: Strange? BETWEEN behaviour.