Skip to content

Commit 3f533f5

Browse files
authored
fix SQL sample parameters for direct usability (#3056)
1 parent 19024bd commit 3f533f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/howto/embedding.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Here's how we'd usually do that:
2626
SELECT students.*, test_scores.*
2727
FROM students
2828
JOIN test_scores ON test_scores.student_id = students.id
29-
WHERE students.id = ?;
29+
WHERE students.id = $1;
3030
```
3131

3232
When using Go, sqlc will produce a struct like this:
@@ -50,7 +50,7 @@ flattened list of columns.
5050
SELECT sqlc.embed(students), sqlc.embed(test_scores)
5151
FROM students
5252
JOIN test_scores ON test_scores.student_id = students.id
53-
WHERE students.id = ?;
53+
WHERE students.id = $1;
5454
```
5555

5656
```

0 commit comments

Comments
 (0)