mirror of
https://github.com/launchbadge/sqlx
synced 2024-11-10 06:24:16 +00:00
Added tests for trailing commas on query_file! and query_file_as!
This commit is contained in:
parent
cefd377020
commit
f0b276ea86
1 changed files with 2 additions and 2 deletions
|
@ -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?;
|
||||
|
||||
|
|
Loading…
Reference in a new issue