Skip to content

Commit

Permalink
fix queries.Raw args
Browse files Browse the repository at this point in the history
  • Loading branch information
kotaroyamazaki authored and stephenafamo committed Aug 14, 2022
1 parent fa3f9bb commit 63efd17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1314,12 +1314,12 @@ type PilotAndJet struct {

var paj PilotAndJet
// Use a raw query
err := queries.Raw(db, `
err := queries.Raw(`
select pilots.id as "pilots.id", pilots.name as "pilots.name",
jets.id as "jets.id", jets.pilot_id as "jets.pilot_id",
jets.age as "jets.age", jets.name as "jets.name", jets.color as "jets.color"
from pilots inner join jets on jets.pilot_id=?`, 23,
).Bind(&paj)
).Bind(ctx, db, &paj)

// Use query building
err := models.NewQuery(
Expand Down

0 comments on commit 63efd17

Please sign in to comment.