We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The generated code asks for a int which prevents me from providing something like "10_" or "%10"
"10_"
"%10"
/* name: ListExtensions :many */ SELECT `id`, `student_id`, `length`, `created_at` FROM `extensions` WHERE `student_id` LIKE ?
const listExtensions = `-- name: ListExtensions :many select id, student_id, length, created_at from extensions where student_id like ? order by created_at desc limit 25 ` type ListExtensionsRow struct { ID int `json:"id"` StudentID int `json:"student_id"` Length int `json:"length"` CreatedAt time.Time `json:"created_at"` } func (q *Queries) ListExtensions(ctx context.Context, student_id int) ([]ListExtensionsRow, error) { rows, err := q.query(ctx, q.listExtensionsStmt, listExtensions, student_id) if err != nil { return nil, err } defer rows.Close() items := []ListExtensionsRow{} for rows.Next() { var i ListExtensionsRow if err := rows.Scan( &i.ID, &i.StudentID, &i.Length, &i.CreatedAt, ); err != nil { return nil, err } items = append(items, i) } if err := rows.Close(); err != nil { return nil, err } if err := rows.Err(); err != nil { return nil, err } return items, nil }
The text was updated successfully, but these errors were encountered:
Using the new mysql:beta engine LIKE just doesn't work at all.
mysql:beta
LIKE
Sorry, something went wrong.
Reproduced the error here.
Successfully merging a pull request may close this issue.
The generated code asks for a int which prevents me from providing something like
"10_"
or"%10"
Generated code
The text was updated successfully, but these errors were encountered: