Skip to content

Commit

Permalink
docs: added a note about MySQL syntax in the README example (#1445)
Browse files Browse the repository at this point in the history
  • Loading branch information
frol authored Sep 20, 2021
1 parent a5997a2 commit 24c0d52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ async fn main() -> Result<(), sqlx::Error> {
.max_connections(5)
.connect("postgres://postgres:password@localhost/test").await?;

// Make a simple query to return the given parameter
// Make a simple query to return the given parameter (use a question mark `?` instead of `$1` for MySQL)
let row: (i64,) = sqlx::query_as("SELECT $1")
.bind(150_i64)
.fetch_one(&pool).await?;
Expand Down

0 comments on commit 24c0d52

Please sign in to comment.