Added tests for trailing commas on query_file! and query_file_as!

This commit is contained in:
Tim Harding 2020-02-09 20:41:16 -08:00
parent cefd377020
commit f0b276ea86

View file

@ -34,7 +34,7 @@ async fn test_no_result() -> anyhow::Result<()> {
async fn _file() -> anyhow::Result<()> {
let mut conn = connect().await?;
let account = sqlx::query_file!("tests/test-query.sql")
let account = sqlx::query_file!("tests/test-query.sql",)
.fetch_one(&mut conn)
.await?;
@ -99,7 +99,7 @@ async fn test_query_as_raw() -> anyhow::Result<()> {
async fn test_query_file_as() -> anyhow::Result<()> {
let mut conn = connect().await?;
let account = sqlx::query_file_as!(Account, "tests/test-query.sql")
let account = sqlx::query_file_as!(Account, "tests/test-query.sql",)
.fetch_one(&mut conn)
.await?;