Skip to content

Commit

Permalink
Fix #105, allow trailing commas in query macros
Browse files Browse the repository at this point in the history
  • Loading branch information
timmythetiny authored and janaakhterov committed Mar 4, 2020
1 parent 6a07e85 commit 4a3360f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/postgres-macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ async fn test_query() -> anyhow::Result<()> {

let account = sqlx::query!(
"SELECT * from (VALUES (1, 'Herp Derpinson')) accounts(id, name) where id = $1",
1i32
1i32,
)
.fetch_one(&mut conn)
.await?;
Expand Down

0 comments on commit 4a3360f

Please sign in to comment.