dbTalk Databases Forums  

[BUGS] casting timeofday to timestamp broken under cygwin

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] casting timeofday to timestamp broken under cygwin in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Tim McAuley
 
Posts: n/a

Default [BUGS] casting timeofday to timestamp broken under cygwin - 08-01-2003 , 06:21 AM






Hi,

I am unable to cast the output of timeofday() to a timestamp under
postgresql 7.3.3-1 under cygwin. I can do so under 7.3.2 running on Linux.

All the best,

Tim

Results as follows:

__________________________________________________ ______________________________
Cygwin - Postgresql 7.3.3 - Windows 2000:
__________________________________________________ ______________________________

version
-----------------------------------------------------------------------------------------
PostgreSQL 7.3.3 on i686-pc-cygwin, compiled by GCC gcc (GCC) 3.2
20020927 (prerelease)

# select timeofday();

timeofday
---------------------------------------
Fri Jul 25 11:14:50.406227 2003 GMTDT

# select timeofday()::timestamp;
ERROR: Bad timestamp external representation 'Fri Jul 25
11:15:23.629227 2003 GMTDT'

__________________________________________________ ______________________________
Redhat Linux 9, Postgresql 7.3.2
__________________________________________________ ______________________________



version
-----------------------------------------------------------------------------------------------------------------------------------
PostgreSQL 7.3.2 on i386-redhat-linux-gnu, compiled by GCC
i386-redhat-linux-gcc (GCC) 3.2.2 20030213 (Red Hat Linux 8.0 3.2.2-1)

# select timeofday();
timeofday
-------------------------------------
Fri Jul 25 11:05:23.371428 2003 IST

# select timeofday()::timestamp;
timeofday
----------------------------
2003-07-25 11:05:45.440165





---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.