mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-03-19 08:39:44 +00:00
Tweak macro to only accept literals
This commit is contained in:
committed by
Austin Bonander
parent
61237b8503
commit
8626cf5ba8
@@ -57,7 +57,7 @@ async fn register(mut req: Request<PgPool>) -> Response {
|
||||
INSERT INTO users ( username, email, password )
|
||||
VALUES ( $1, $2, $3 )
|
||||
RETURNING id, username, email
|
||||
"#,
|
||||
"#,
|
||||
&*body.username,
|
||||
&*body.email,
|
||||
&*hash,
|
||||
|
||||
Reference in New Issue
Block a user