Skip to content

Error while get queue element by id #209

@L0stCluster

Description

@L0stCluster

I turn off auto_commit and trying get element by id.
I getting this traceback: sqlite3.ProgrammingError: Incorrect number of bindings supplied. The current statement uses 0, and there are 1 supplied.

Minimally reproducible example:

from persistqueue import SQLiteQueue

q = SQLiteQueue(path="queue", auto_commit=False)
queue_id = q.put("elemenent")
q.task_done()

print (queue_id)

queue_data = q.get(id=queue_id, raw=True)
q.task_done()

print(queue_data)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions