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

00050000-interval2.ex reference query does not validate with expected results #86

Open
rngadam opened this issue Apr 13, 2024 · 0 comments

Comments

@rngadam
Copy link

rngadam commented Apr 13, 2024

https://github.com/AlisdairO/pgexercises/blob/master/questions/date/00050000-interval2.ex

copy pasting the example query into "Your answer" fails to validate as it has decimals while the Expected results do not:

select extract(epoch from (timestamp '2012-09-02 00:00:00' - '2012-08-31 01:00:00'));          

can be fixed by turning into an integer with round:

select round(extract(epoch from (timestamp '2012-09-02 00:00:00' - '2012-08-31 01:00:00')));          

but AFAIK the sample result is from that example query in the first place so not sure why.

image

@rngadam rngadam changed the title 00050000-interval2.ex does not validate 00050000-interval2.ex reference query does not validate with expected results Apr 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant