Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: BUG #3252: Select Order by time



"Lee Chua" <leehchua(at)bensecurity(dot)com(dot)au> writes:
> When we select and order by time we get 00:00:00 as the latest time of the
> day.

Really?  It works as expected for me:

regression=# create table foo(f1 time);
CREATE TABLE
regression=# insert into foo values ('1:00:00'),('2:00:00'),('0:00:00'),
regression-#  ('23:00:00'), ('23:59:59');
INSERT 0 5
regression=# select * from foo order by f1;
    f1    
----------
 00:00:00
 01:00:00
 02:00:00
 23:00:00
 23:59:59
(5 rows)

regression=

Please provide a reproducible test case.

			regards, tom lane



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group