Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

String plus interval result in program errors upon comparison #3002

Closed
monetdb-team opened this issue Nov 30, 2020 · 0 comments
Closed

String plus interval result in program errors upon comparison #3002

monetdb-team opened this issue Nov 30, 2020 · 0 comments
Labels
bug Something isn't working minor SQL

Comments

@monetdb-team
Copy link

Date: 2012-02-09 00:53:35 +0100
From: @skinkie
To: SQL devs <>
Version: -- development
CC: @njnes

Last updated: 2012-03-16 14:56:56 +0100

Comment 16873

Date: 2012-02-09 00:53:35 +0100
From: @skinkie

User-Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.83 Safari/535.2
Build Identifier:

select '1970-01-01 11:00' - interval '600' second;
wrong format (1970-01-01 11:00)

select cast('1970-01-01 11:00' as timestamp) = '1970-01-01 11:00' - interval '600' second;
TypeException:user.s31_1[9]:'calc.timestamp' undefined in: _17:any := calc.timestamp(_16:lng, _10:int)
39000!program contains errors

Reproducible: Always

Comment 16877

Date: 2012-02-13 14:47:14 +0100
From: @sjoerdmullender

It would be helpful if you didn't just copy-and-paste the query and the error, but also wrote what it was you expected and why you think something is wrong.

Comment 16878

Date: 2012-02-13 15:02:40 +0100
From: @skinkie

In my opinion anything is wrong when a user is informed that a program contains errors, especially because it is not a message that a human can understand and is out of protocol.

Comment 17008

Date: 2012-02-27 15:57:13 +0100
From: @njnes

we now disallow converts from interval to timestamps

Comment 17105

Date: 2012-03-16 14:56:56 +0100
From: @grobian

Released in Dec2011-SP2

@monetdb-team monetdb-team added bug Something isn't working minor SQL labels Nov 30, 2020
@sjoerdmullender sjoerdmullender added this to the Ancient Release milestone Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working minor SQL
Projects
None yet
Development

No branches or pull requests

2 participants