Skip to content

SQL like does not work with parameters #11

@GusBeare

Description

@GusBeare

I believe I have noticed a bug and it's a significant one.

In your readme you have this:

context.All("SELECT * FROM Cars WHERE Name LIKE %@0%", "Lotus");

But this causes an object ref error because there are no single quotes around the expression.
But, when I try this:

var ads = context.All("select * from myTable where Title like '%@0%'","Vis");

The parameter is ignored.

Don't supposed you can fix this?

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