Skip to content

Bug: Incorrect error handling in a select iterator #61

@savolgin

Description

@savolgin

Calling a select with a condition in which the type of the column and the type of the value do not match causes the task to freeze and does not return any result.

Steps to reproduce the issue

Call select
require('crud').select('space_name', {{'=', 'id', 'not_number'}})

What's the expected result?

error message

What's the actual result?

does not respond

Additional details

cartridge log:
myapp.router | 2020-10-14 12:10:47.946 [757] main/132/lua replicaset.lua:257 E> Exception during calling '__call' on 'localhost:3304(admin@localhost:3304)': Supplied key type of part 0 does not match index part type: expected unsigned myapp.router | 2020-10-14 12:10:47.946 [757] main/131/lua utils.c:1028 E> LuajitError: /opt/myapp/crud/select/iterator.lua:104: attempt to call method 'new' (a nil value)

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