Skip to content

Commit

Permalink
fix mysql includes
Browse files Browse the repository at this point in the history
  • Loading branch information
mirostauder committed Oct 31, 2023
1 parent 01586df commit b939609
Show file tree
Hide file tree
Showing 63 changed files with 65 additions and 65 deletions.
2 changes: 1 addition & 1 deletion test/tap/tests/admin-listen_on_unix-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <stdio.h>

#include "mysql.h"
#include "mysql/mysqld_error.h"
#include "mysqld_error.h"

#include "proxysql_utils.h"
#include "tap.h"
Expand Down
2 changes: 1 addition & 1 deletion test/tap/tests/admin_show_create_table-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <tuple>

#include "mysql.h"
#include "mysql/mysqld_error.h"
#include "mysqld_error.h"

#include "tap.h"
#include "command_line.h"
Expand Down
2 changes: 1 addition & 1 deletion test/tap/tests/admin_show_fields_from-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <tuple>

#include "mysql.h"
#include "mysql/mysqld_error.h"
#include "mysqld_error.h"

#include "tap.h"
#include "command_line.h"
Expand Down
2 changes: 1 addition & 1 deletion test/tap/tests/admin_show_table_status-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <tuple>

#include "mysql.h"
#include "mysql/mysqld_error.h"
#include "mysqld_error.h"

#include "tap.h"
#include "command_line.h"
Expand Down
2 changes: 1 addition & 1 deletion test/tap/tests/admin_various_commands-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <tuple>

#include "mysql.h"
#include "mysql/mysqld_error.h"
#include "mysqld_error.h"

#include "tap.h"
#include "command_line.h"
Expand Down
2 changes: 1 addition & 1 deletion test/tap/tests/admin_various_commands2-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <tuple>

#include "mysql.h"
#include "mysql/mysqld_error.h"
#include "mysqld_error.h"

#include "tap.h"
#include "command_line.h"
Expand Down
2 changes: 1 addition & 1 deletion test/tap/tests/admin_various_commands3-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <tuple>

#include "mysql.h"
#include "mysql/mysqld_error.h"
#include "mysqld_error.h"

#include "tap.h"
#include "command_line.h"
Expand Down
2 changes: 1 addition & 1 deletion test/tap/tests/firewall_commands1-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <tuple>

#include "mysql.h"
#include "mysql/mysqld_error.h"
#include "mysqld_error.h"

#include "tap.h"
#include "command_line.h"
Expand Down
2 changes: 1 addition & 1 deletion test/tap/tests/max_connections_ff-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <unistd.h>

#include "mysql.h"
#include "mysql/mysqld_error.h"
#include "mysqld_error.h"

#include "json.hpp"

Expand Down
2 changes: 1 addition & 1 deletion test/tap/tests/multiple_prepared_statements-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ It stresses how proxysql managers prepared statements, specifically:
#include <unistd.h>

#include "mysql.h"
#include "mysql/mysqld_error.h"
#include "mysqld_error.h"

#include "command_line.h"
#include "proxysql_utils.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <unistd.h>

#include "mysql.h"
#include "mysql/mysqld_error.h"
#include "mysqld_error.h"

#include "json.hpp"

Expand Down
2 changes: 1 addition & 1 deletion test/tap/tests/reg_test_1493-mixed_compression-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <stdio.h>

#include "mysql.h"
#include "mysql/mysqld_error.h"
#include "mysqld_error.h"

#include "tap.h"
#include "command_line.h"
Expand Down
2 changes: 1 addition & 1 deletion test/tap/tests/reg_test_2793-compression-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <string>
#include <stdio.h>
#include "mysql.h"
#include "mysql/mysqld_error.h"
#include "mysqld_error.h"

#include "tap.h"
#include "command_line.h"
Expand Down
2 changes: 1 addition & 1 deletion test/tap/tests/reg_test_3223-restapi_return_codes-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include "curl/curl.h"
#include "json.hpp"
#include "mysql.h"
#include "mysql/mysqld_error.h"
#include "mysqld_error.h"

#include "command_line.h"
#include "proxysql_utils.h"
Expand Down
2 changes: 1 addition & 1 deletion test/tap/tests/reg_test_3247-mycli_support-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <sstream>
#include <stdio.h>
#include "mysql.h"
#include "mysql/mysqld_error.h"
#include "mysqld_error.h"

#include "tap.h"
#include "command_line.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include <stdio.h>

#include "mysql.h"
#include "mysql/mysqld_error.h"
#include "mysqld_error.h"

#include "proxysql_utils.h"
#include "tap.h"
Expand Down
2 changes: 1 addition & 1 deletion test/tap/tests/reg_test_3427-stmt_first_comment1-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include <stdio.h>

#include "mysql.h"
#include "mysql/mysqld_error.h"
#include "mysqld_error.h"

#include "proxysql_utils.h"
#include "tap.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include <stdio.h>

#include "mysql.h"
#include "mysql/mysqld_error.h"
#include "mysqld_error.h"

#include "proxysql_utils.h"
#include "tap.h"
Expand Down
2 changes: 1 addition & 1 deletion test/tap/tests/reg_test_3427-stmt_first_comment2-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include <stdio.h>

#include "mysql.h"
#include "mysql/mysqld_error.h"
#include "mysqld_error.h"

#include "proxysql_utils.h"
#include "tap.h"
Expand Down
2 changes: 1 addition & 1 deletion test/tap/tests/reg_test_3504-change_user-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <unistd.h>

#include "mysql.h"
#include "mysql/mysqld_error.h"
#include "mysqld_error.h"

#include "command_line.h"
#include "proxysql_utils.h"
Expand Down
2 changes: 1 addition & 1 deletion test/tap/tests/reg_test_3504-change_user_helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#include <iostream>

#include "mysql.h"
#include "mysql/mysqld_error.h"
#include "mysqld_error.h"

#include "proxysql_utils.h"
#include "json.hpp"
Expand Down
2 changes: 1 addition & 1 deletion test/tap/tests/reg_test_3546-stmt_empty_params-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <stdio.h>

#include "mysql.h"
#include "mysql/mysqld_error.h"
#include "mysqld_error.h"

#include "proxysql_utils.h"
#include "tap.h"
Expand Down
2 changes: 1 addition & 1 deletion test/tap/tests/reg_test_3606-mysql_warnings-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <stdio.h>

#include "mysql.h"
#include "mysql/mysqld_error.h"
#include "mysqld_error.h"

#include "proxysql_utils.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <unistd.h>

#include "mysql.h"
#include "mysql/mysqld_error.h"
#include "mysqld_error.h"

#include "tap.h"
#include "command_line.h"
Expand Down
2 changes: 1 addition & 1 deletion test/tap/tests/reg_test_3838-restapi_eintr-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "curl/curl.h"

#include "mysql.h"
#include "mysql/mysqld_error.h"
#include "mysqld_error.h"

#include "json.hpp"
#include "tap.h"
Expand Down
2 changes: 1 addition & 1 deletion test/tap/tests/reg_test_3847_admin_lock-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <unistd.h>

#include "mysql.h"
#include "mysql/mysqld_error.h"
#include "mysqld_error.h"

#include "proxysql_utils.h"
#include "tap.h"
Expand Down
2 changes: 1 addition & 1 deletion test/tap/tests/reg_test_4072-show-warnings-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <string>
#include <thread>
#include "mysql.h"
#include "mysql/mysqld_error.h"
#include "mysqld_error.h"
#include "tap.h"
#include "command_line.h"
#include "utils.h"
Expand Down
2 changes: 1 addition & 1 deletion test/tap/tests/reg_test_4264-commit_rollback-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
#include <unistd.h>

#include "mysql.h"
#include "mysql/mysqld_error.h"
#include "mysqld_error.h"

#include "tap.h"
#include "utils.h"
Expand Down
2 changes: 1 addition & 1 deletion test/tap/tests/reg_test_4300-dollar_quote_check-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <unistd.h>

#include "mysql.h"
#include "mysql/mysqld_error.h"
#include "mysqld_error.h"

#include "tap.h"
#include "utils.h"
Expand Down
2 changes: 1 addition & 1 deletion test/tap/tests/reg_test_sql_calc_found_rows-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <unistd.h>

#include "mysql.h"
#include "mysql/mysqld_error.h"
#include "mysqld_error.h"

#include "json.hpp"

Expand Down
6 changes: 3 additions & 3 deletions test/tap/tests/reg_test_stmt_resultset_err_no_rows-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <vector>

#include "mysql.h"
#include "mysql/mysqld_error.h"
#include "mysqld_error.h"

#include "proxysql_utils.h"
#include "tap.h"
Expand Down Expand Up @@ -140,9 +140,9 @@ int main(int argc, char** argv) {
bind.buffer_type = MYSQL_TYPE_STRING;
bind.buffer = (char *)&data_c2;
bind.buffer_length = STRING_SIZE;
bind.is_null = &is_null[0];
bind.is_null = (my_bool *)&is_null[0];
bind.length = &length[0];
bind.error = &error[0];
bind.error = (my_bool *)&error[0];

if (mysql_stmt_bind_result(stmt, &bind)) {
diag("mysql_stmt_bind_result at line %d failed: %s", __LINE__, mysql_stmt_error(stmt));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <vector>

#include "mysql.h"
#include "mysql/mysqld_error.h"
#include "mysqld_error.h"

#include "proxysql_utils.h"
#include "tap.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <vector>

#include "mysql.h"
#include "mysql/mysqld_error.h"
#include "mysqld_error.h"

#include "tap.h"
#include "command_line.h"
Expand Down
2 changes: 1 addition & 1 deletion test/tap/tests/test_admin_stats-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ DELETE FROM history_mysql_status_variables;
#include <vector>

#include "mysql.h"
#include "mysql/mysqld_error.h"
#include "mysqld_error.h"

#include "tap.h"
#include "command_line.h"
Expand Down
2 changes: 1 addition & 1 deletion test/tap/tests/test_auto_increment_delay_multiplex-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

#include <unistd.h>
#include "mysql.h"
#include "mysql/mysqld_error.h"
#include "mysqld_error.h"

#include "json.hpp"

Expand Down
2 changes: 1 addition & 1 deletion test/tap/tests/test_binlog_reader-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include <vector>

#include "mysql.h"
#include "mysql/mysqld_error.h"
#include "mysqld_error.h"
#include <json.hpp>

#include "tap.h"
Expand Down
2 changes: 1 addition & 1 deletion test/tap/tests/test_clickhouse_server-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include <unistd.h>

#include "mysql.h"
#include "mysql/mysqld_error.h"
#include "mysqld_error.h"

#include "tap.h"
#include "command_line.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <unistd.h>

#include "mysql.h"
#include "mysql/mysqld_error.h"
#include "mysqld_error.h"

#include "command_line.h"
#include "proxysql_utils.h"
Expand Down
2 changes: 1 addition & 1 deletion test/tap/tests/test_connection_annotation-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <stdio.h>

#include "mysql.h"
#include "mysql/mysqld_error.h"
#include "mysqld_error.h"

#include "tap.h"
#include "command_line.h"
Expand Down
2 changes: 1 addition & 1 deletion test/tap/tests/test_default_conn_collation-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include <string>

#include "mysql.h"
#include "mysql/mysqld_error.h"
#include "mysqld_error.h"

#include "tap.h"
#include "utils.h"
Expand Down
2 changes: 1 addition & 1 deletion test/tap/tests/test_dns_cache-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <thread>

#include "mysql.h"
#include "mysql/mysqld_error.h"
#include "mysqld_error.h"

#include "tap.h"
#include "command_line.h"
Expand Down
2 changes: 1 addition & 1 deletion test/tap/tests/test_gtid_forwarding-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <string.h>

#include "mysql.h"
#include "mysql/mysqld_error.h"
#include "mysqld_error.h"

#include "tap.h"
#include "command_line.h"
Expand Down
2 changes: 1 addition & 1 deletion test/tap/tests/test_log_last_insert_id-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <unistd.h>

#include "mysql.h"
#include "mysql/mysqld_error.h"
#include "mysqld_error.h"

#include "tap.h"
#include "command_line.h"
Expand Down
Loading

0 comments on commit b939609

Please sign in to comment.