Skip to content

Commit 24c0d52

Browse files
authored
docs: added a note about MySQL syntax in the README example (#1445)
1 parent a5997a2 commit 24c0d52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ async fn main() -> Result<(), sqlx::Error> {
223223
.max_connections(5)
224224
.connect("postgres://postgres:password@localhost/test").await?;
225225

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

0 commit comments

Comments
 (0)