Skip to content

LIKE operator not working properly with prepared statemets #57

Open
@arsenitem

Description

@arsenitem

I have code like this
local query = [[
SELECT ID, NAME FROM table
WHERE NAME LIKE '%?%'
]]
local data, err = conn:execute(query, name)
Instead of receiving a record i got an empty table
The same query works when using dbeaver(for example)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions