Skip to content

regression error with options in 0.8-3 #3

@wglasshusain

Description

@wglasshusain

Hi,

The most recent commit (2fd4f65) with version 0.8-3 introduced a regression error.

Specifically, my code (run api, run.lua) does

local q = require 'lusty-store.query'()
...
local count = store.options(q)

After upgrading fro 0.8-2 to 0.8-3, the count is now always the entire set of records. (it ignores the options). I tested this with a queries that included either q[field].eq or q.field[is]

I tracked this down to the specific line in colmt.lua

-      query = next(query) and query or nil
+      query = query and next(query) or nil

Reverting just this line made the options work properly

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