timestamp field - select error - Mailing list pgsql-sql

From alexandre :: aldeia digital
Subject timestamp field - select error
Date
Msg-id 1288.200.170.145.209.1053953043.squirrel@webmail.ad2.com.br
Whole thread Raw
Responses Re: timestamp field - select error  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql
Hi,

I have a large table with a timestamp field.

select cf03dthr from cf03t where cf03dthr <= '2003-12-31'::timestamp ORDER
BY cf03dthr DESC LIMIT 3
     cf03dthr
---------------------2003-05-27 01:01:012003-05-26 09:50:552003-05-26 09:49:54
(3 rows)

(...) where cf03dthr <= '2003-05-27' (...)
     cf03dthr
---------------------2003-05-26 09:52:282003-05-26 09:50:552003-05-26 09:49:54
(3 rows)

* But if I do: (...) where cf03dthr <= '2003-05-26' (...)
* I get: "ERROR:  convert_timevalue_to_scalar: unsupported type 16976"
* This occurs in any other dates...

If I do: (...) where cf03dthr <= '2003-05-26 09:00:00' (...), for example,
the rows returns OK, but <= '2003-05-26 06:00:00' or many other
combinations give me the same error.


Thank´s for any help.

alexandre





pgsql-sql by date:

Previous
From: Mukta Telang
Date:
Subject: Many-to-Many relation
Next
From: "Michael Mattox"
Date:
Subject: How to delete multiple rows from multiple joined tables