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

HeightBefore should return error if there's no such height #131

Open
zjshen14 opened this issue Oct 15, 2019 · 0 comments
Open

HeightBefore should return error if there's no such height #131

zjshen14 opened this issue Oct 15, 2019 · 0 comments

Comments

@zjshen14
Copy link
Contributor

Currently, the query SELECT MAX(height) FROM %s WHERE ? >= time AND EXISTS (SELECT * FROM %s WHERE ? <= time) will return one row with value NULL if no such rows match the predicates. And NULL is taken as 0, which confuse the consumer of the this api

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