1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-08 14:02:17 +03:00

C/C integration : Fix mysql_test_client test

- #include <stdlib.h> for strtod and other prototypes
- remove ma_config_win.h as it  redefines things from ma_config.h
- fix compile warnings
This commit is contained in:
Vladislav Vaintroub
2016-09-07 17:14:02 +00:00
parent c87193af81
commit 38b5e400da
9 changed files with 23 additions and 326 deletions

View File

@@ -8,7 +8,7 @@ static int aurora1(MYSQL *my)
{
int rc;
my_bool read_only= 1;
const char *primary, *my_schema;
char *primary, *my_schema;
MYSQL_RES *res;
MYSQL *mysql= mysql_init(NULL);
@@ -75,7 +75,7 @@ static int test_reconnect(MYSQL *my)
my_bool read_only= 1;
int rc;
my_bool reconnect= 1;
const char *aurora_host;
char *aurora_host;
mysql_options(mysql, MYSQL_OPT_RECONNECT, &reconnect);