@@ -73,7 +73,7 @@ async def _check_multi_statement_results(
7373
7474async def test_multi_statement_basic (conn_cnx , skip_to_last_set : bool ):
7575 """Selects fixed integer data using statement level parameters."""
76- async with conn_cnx () as con :
76+ async with conn_cnx (paramstyle = "pyformat" ) as con :
7777 async with con .cursor () as cur :
7878 statement_params = dict ()
7979 await cur .execute (
@@ -144,7 +144,7 @@ async def test_binding_multi(conn_cnx, style: str, skip_to_last_set: bool):
144144@pytest .mark .parametrize ("cursor_class" , [SnowflakeCursor , DictCursor ])
145145async def test_async_exec_multi (conn_cnx , cursor_class , skip_to_last_set : bool ):
146146 """Tests whether async execution query works within a multi-statement"""
147- async with conn_cnx () as con :
147+ async with conn_cnx (paramstyle = "pyformat" ) as con :
148148 async with con .cursor (cursor_class ) as cur :
149149 await cur .execute_async (
150150 "select 1; select 2; select count(*) from table(generator(timeLimit => 1)); select 'b';" ,
@@ -153,7 +153,7 @@ async def test_async_exec_multi(conn_cnx, cursor_class, skip_to_last_set: bool):
153153 q_id = cur .sfqid
154154 assert con .is_still_running (await con .get_query_status (q_id ))
155155 await _wait_while_query_running_async (con , q_id , sleep_time = 1 )
156- async with conn_cnx () as con :
156+ async with conn_cnx (paramstyle = "pyformat" ) as con :
157157 async with con .cursor (cursor_class ) as cur :
158158 await _wait_until_query_success_async (
159159 con , q_id , num_checks = 3 , sleep_per_check = 1
@@ -318,7 +318,7 @@ async def test_executemany_multi(conn_cnx, skip_to_last_set: bool):
318318 """Tests executemany with multi-statement optimizations enabled through the num_statements parameter."""
319319 table1 = random_string (5 , "test_executemany_multi_" )
320320 table2 = random_string (5 , "test_executemany_multi_" )
321- async with conn_cnx () as con :
321+ async with conn_cnx (paramstyle = "pyformat" ) as con :
322322 async with con .cursor () as cur :
323323 await cur .execute (
324324 f"create temp table { table1 } (aa number); create temp table { table2 } (bb number);" ,
0 commit comments