Skip to content

QM is not useful for queries like this? #1397

Closed Answered by stephenafamo
ToxicalNoob3062 asked this question in Q&A
Discussion options

You must be logged in to vote

What driver are you using for these named args? It looks like SQLite to me.

The issue is not with SQLBoiler, but with how you're passing named args. This line:

rows, err := exec.QueryContext(ctx, sql, params)

Should be:

rows, err := exec.QueryContext(
    ctx, SQL, 
    sql.Named("shopId", params.ShopID), 
    sql.Named("tagList", params.TagList),
    // and so on....
)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by stephenafamo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants