File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ async fn pool_should_be_returned_failed_transactions() -> anyhow::Result<()> {
7474#[ sqlx_macros:: test]
7575async 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 ?;
You can’t perform that action at this time.
0 commit comments