Skip to content

Commit

Permalink
fix prepared_statements.md
Browse files Browse the repository at this point in the history
  • Loading branch information
muroon committed Sep 29, 2021
1 parent f3c0148 commit 80028c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/prepared_statements.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ You can use [Prepared Statements on Athena](https://docs.aws.amazon.com/athena/l
db, _ := sql.Open("athena", "db=default&output_location=s3:https://results")
// 1. Prepare
stmt, _ := db.PrepareContext(ctx, fmt.Sprintf("SELECT url, code FROM cloudfront WHERE code = ?"))
stmt, _ := db.PrepareContext(ctx, "SELECT url, code FROM cloudfront WHERE code = ?")
defer stmt.Close() // 3. Close
// 2. Execute
Expand Down

0 comments on commit 80028c7

Please sign in to comment.