Skip to content

Commit a57e59d

Browse files
committed
fix doc test
1 parent 5aa2c8f commit a57e59d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlx-core/src/query.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ where
558558
/// let query = format!("SELECT * FROM articles WHERE content LIKE '%{user_input}%'");
559559
/// // where `conn` is `PgConnection` or `MySqlConnection`
560560
/// // or some other type that implements `Executor`.
561-
/// let results = sqlx::query(&query).fetch_all(&mut conn).await?;
561+
/// let results = sqlx::query(sqlx::AssertSqlSafe(query)).fetch_all(&mut conn).await?;
562562
/// # Ok(())
563563
/// # }
564564
/// ```

0 commit comments

Comments
 (0)