@@ -396,6 +396,7 @@ fn test_stmt_finish() {
396396}
397397
398398#[ test]
399+ #[ allow( deprecated) ]
399400fn test_batch_execute ( ) {
400401 let conn = or_panic ! ( Connection :: connect(
401402 "postgres://postgres@localhost:5433" ,
@@ -415,6 +416,7 @@ fn test_batch_execute() {
415416}
416417
417418#[ test]
419+ #[ allow( deprecated) ]
418420fn test_batch_execute_error ( ) {
419421 let conn = or_panic ! ( Connection :: connect(
420422 "postgres://postgres@localhost:5433" ,
@@ -435,6 +437,7 @@ fn test_batch_execute_error() {
435437}
436438
437439#[ test]
440+ #[ allow( deprecated) ]
438441fn test_transaction_batch_execute ( ) {
439442 let conn = or_panic ! ( Connection :: connect(
440443 "postgres://postgres@localhost:5433" ,
@@ -1091,6 +1094,7 @@ fn test_execute_copy_from_err() {
10911094}
10921095
10931096#[ test]
1097+ #[ allow( deprecated) ]
10941098fn test_batch_execute_copy_from_err ( ) {
10951099 let conn = or_panic ! ( Connection :: connect(
10961100 "postgres://postgres@localhost:5433" ,
@@ -1156,7 +1160,7 @@ fn test_query_copy_out_err() {
11561160 "postgres://postgres@localhost:5433" ,
11571161 TlsMode :: None ,
11581162 ) ) ;
1159- or_panic ! ( conn. batch_execute (
1163+ or_panic ! ( conn. simple_query (
11601164 "
11611165 CREATE TEMPORARY TABLE foo (id INT);
11621166 INSERT INTO foo (id) VALUES (0), (1), (2), (3)" ,
@@ -1175,7 +1179,7 @@ fn test_copy_out() {
11751179 "postgres://postgres@localhost:5433" ,
11761180 TlsMode :: None ,
11771181 ) ) ;
1178- or_panic ! ( conn. batch_execute (
1182+ or_panic ! ( conn. simple_query (
11791183 "
11801184 CREATE TEMPORARY TABLE foo (id INT);
11811185 INSERT INTO foo (id) VALUES (0), (1), (2), (3)" ,
@@ -1185,7 +1189,7 @@ fn test_copy_out() {
11851189 let count = or_panic ! ( stmt. copy_out( & [ ] , & mut buf) ) ;
11861190 assert_eq ! ( count, 4 ) ;
11871191 assert_eq ! ( buf, b"0\n 1\n 2\n 3\n " ) ;
1188- or_panic ! ( conn. batch_execute ( "SELECT 1" ) ) ;
1192+ or_panic ! ( conn. simple_query ( "SELECT 1" ) ) ;
11891193}
11901194
11911195#[ test]
@@ -1194,7 +1198,7 @@ fn test_copy_out_error() {
11941198 "postgres://postgres@localhost:5433" ,
11951199 TlsMode :: None ,
11961200 ) ) ;
1197- or_panic ! ( conn. batch_execute (
1201+ or_panic ! ( conn. simple_query (
11981202 "
11991203 CREATE TEMPORARY TABLE foo (id INT);
12001204 INSERT INTO foo (id) VALUES (0), (1), (2), (3)" ,
@@ -1380,7 +1384,7 @@ fn test_transaction_isolation_level() {
13801384#[ test]
13811385fn test_rows_index ( ) {
13821386 let conn = Connection :: connect ( "postgres://postgres@localhost:5433" , TlsMode :: None ) . unwrap ( ) ;
1383- conn. batch_execute (
1387+ conn. simple_query (
13841388 "
13851389 CREATE TEMPORARY TABLE foo (id INT PRIMARY KEY);
13861390 INSERT INTO foo (id) VALUES (1), (2), (3);
@@ -1413,7 +1417,7 @@ fn test_type_names() {
14131417#[ test]
14141418fn test_conn_query ( ) {
14151419 let conn = Connection :: connect ( "postgres://postgres@localhost:5433" , TlsMode :: None ) . unwrap ( ) ;
1416- conn. batch_execute (
1420+ conn. simple_query (
14171421 "
14181422 CREATE TEMPORARY TABLE foo (id INT PRIMARY KEY);
14191423 INSERT INTO foo (id) VALUES (1), (2), (3);
@@ -1492,7 +1496,7 @@ fn explicit_types() {
14921496#[ test]
14931497fn simple_query ( ) {
14941498 let conn = Connection :: connect ( "postgres://postgres@localhost:5433" , TlsMode :: None ) . unwrap ( ) ;
1495- conn. batch_execute (
1499+ conn. simple_query (
14961500 "
14971501 CREATE TEMPORARY TABLE foo (id INT PRIMARY KEY);
14981502 INSERT INTO foo (id) VALUES (1), (2), (3);
0 commit comments