def METHOD_NAME(self):
    """Check that non-positive value of following offset returns an error.
    """
    exitcode = 36
    message = "DB::Exception: Frame end offset must be greater than zero, -2 given"
    sql = ("select max(enroll_date) over (order by salary range between 1 preceding and -2 following) AS max, "
        "salary, enroll_date from empsalary")
    with When("I execute query", description=sql):
        r = current().context.node.query(sql, exitcode=exitcode, message=message)