@@ -666,7 +666,7 @@ mysqli.allow_local_infile=1
666
666
$ info = $ new_info ;
667
667
668
668
669
- // CREATE, ALTER, RENAME, DROP DATABASE
669
+ // CREATE, ALTER, DROP DATABASE
670
670
if (mysqli_query ($ link , "CREATE DATABASE mysqli_get_client_stats " )) {
671
671
672
672
if (!is_array ($ new_info = mysqli_get_client_stats ()) || empty ($ new_info ))
@@ -685,25 +685,13 @@ mysqli.allow_local_infile=1
685
685
mysqli_get_client_stats_assert_eq ('non_result_set_queries ' , $ new_info , (string )($ info ['non_result_set_queries ' ] + 1 ), $ test_counter , 'CREATE DATABASE ' );
686
686
$ info = $ new_info ;
687
687
688
- if (mysqli_get_server_version ($ link ) > 51700 ) {
689
- if (!mysqli_query ($ link , "RENAME DATABASE mysqli_get_client_stats TO mysqli_get_client_stats_ " ))
690
- printf ("[%03d] RENAME DATABASE failed, [%d] %s \n" , ++$ test_counter ,
691
- mysqli_errno ($ link ), mysqli_error ($ link ));
692
-
693
- if (!is_array ($ new_info = mysqli_get_client_stats ()) || empty ($ new_info ))
694
- printf ("[%03d] Expecting array/any_non_empty, got %s/%s \n" ,
695
- ++$ test_counter , gettype ($ new_info ), $ new_info );
696
- mysqli_get_client_stats_assert_eq ('non_result_set_queries ' , $ new_info , (string )($ info ['non_result_set_queries ' ] + 1 ), $ test_counter , 'CREATE DATABASE ' );
697
- $ info = $ new_info ;
698
- } else {
699
- if (!mysqli_query ($ link , "CREATE DATABASE mysqli_get_client_stats_ " ))
700
- printf ("[%03d] CREATE DATABASE failed, [%d] %s \n" , ++$ test_counter ,
701
- mysqli_errno ($ link ), mysqli_error ($ link ));
702
- if (!is_array ($ new_info = mysqli_get_client_stats ()) || empty ($ new_info ))
703
- printf ("[%03d] Expecting array/any_non_empty, got %s/%s \n" ,
704
- ++$ test_counter , gettype ($ new_info ), $ new_info );
705
- $ info = $ new_info ;
706
- }
688
+ if (!mysqli_query ($ link , "CREATE DATABASE mysqli_get_client_stats_ " ))
689
+ printf ("[%03d] CREATE DATABASE failed, [%d] %s \n" , ++$ test_counter ,
690
+ mysqli_errno ($ link ), mysqli_error ($ link ));
691
+ if (!is_array ($ new_info = mysqli_get_client_stats ()) || empty ($ new_info ))
692
+ printf ("[%03d] Expecting array/any_non_empty, got %s/%s \n" ,
693
+ ++$ test_counter , gettype ($ new_info ), $ new_info );
694
+ $ info = $ new_info ;
707
695
708
696
if (!mysqli_query ($ link , "DROP DATABASE mysqli_get_client_stats_ " ))
709
697
printf ("[%03d] DROP DATABASE failed, [%d] %s \n" , ++$ test_counter ,
0 commit comments