Skip to content

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

@zjshen14

Description

@zjshen14

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions