Skip to content

GenerateQuery is not suitable for multi-threaded environments #223

Open
@yurii-shylov

Description

GenerateQuery saves QueryMessage in a static variable inside. If multiple threads are generating queries at the same time, parts of those queries get mixed up and eventually fail to execute. I think either message should be wrapped into ThreadLocal, or GenerateQuery should create and return a wrapper object containing the message

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