Skip to content

Commit ba23ae7

Browse files
committed
refactor(pool): clean up SQL statement formatting and remove unnecessary whitespace
1 parent d451a19 commit ba23ae7

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

tests/any/pool.rs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ async fn pool_should_be_returned_failed_transactions() -> anyhow::Result<()> {
7474
#[sqlx_macros::test]
7575
async fn big_pool() -> anyhow::Result<()> {
7676
use sqlx_oldapi::Row;
77-
77+
7878
let database_url = dotenvy::var("DATABASE_URL")?;
7979

8080
let pool = Arc::new(
@@ -141,19 +141,15 @@ async fn test_pool_callbacks() -> anyhow::Result<()> {
141141

142142
Box::pin(async move {
143143
// Split into separate statements for ODBC drivers that don't support multi-statement execution
144-
let create_statement =
145-
r#"
144+
let create_statement = r#"
146145
CREATE TEMPORARY TABLE conn_stats(
147146
id int primary key,
148147
before_acquire_calls int default 0,
149148
after_release_calls int default 0
150149
)
151150
"#;
152-
153-
let insert_statement = format!(
154-
"INSERT INTO conn_stats(id) VALUES ({})",
155-
id
156-
);
151+
152+
let insert_statement = format!("INSERT INTO conn_stats(id) VALUES ({})", id);
157153

158154
conn.execute(create_statement).await?;
159155
conn.execute(&insert_statement[..]).await?;

0 commit comments

Comments
 (0)