Ingres Community Forums Login Register Ingres.com  

Ingres Community Forum


Go Back   Ingres Community Forums > Ingres Forums > DBA Forum
 

Reply
 
LinkBack Thread Tools Display Modes
Old 2008-11-20   #1 (permalink)
Junior Member
 
Join Date: Oct 2008
Posts: 14
Default timestamp/view strangeness

Hi,

can someone explaint to me what is going on here:
When I execute the query:
select interval('sec', current_timestamp);
it gives the number of seconds since 1970 (6.339706057700001E10), as I expect.

Then I define a view based on this query:
create view timestamp_test as select interval('sec', current_timestamp) value;

When I then try to query this view I get an error:
select * from timestamp_test;
=> com.ingres.gcf.util.SqlEx: the interval function does not work on absolute dates.


Why doesn't this work? Why is current_timestamp interpreted as an 'absolute date' in the view, but not in the original query?

I'm running Ingres II 9.1.1.

Thanks
Ole
oleaka is offline   Reply With Quote
Old 2008-11-20   #2 (permalink)
Junior Member
 
Join Date: Mar 2007
Posts: 10
Default

Hi Ole,
You have hit bug 121098 which I recently fixed in 9.2.0.
Regards,
Ian
kiria01 is offline   Reply With Quote
Old 2008-11-21   #3 (permalink)
Junior Member
 
Join Date: Oct 2008
Posts: 14
Default

Ah, ok.

Thank you for the reply. I managed to work around the problem.

Regards
Ole
oleaka is offline   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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


© 2009 Ingres Corporation. All Rights Reserved