1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-9293 - Use MariaDB's Connector/C in server

This commit is contained in:
Vladislav Vaintroub
2016-08-19 20:03:05 +00:00
committed by Sergei Golubchik
parent 31a8cf54c8
commit 56c4cfe0be
53 changed files with 572 additions and 351 deletions

View File

@@ -68,6 +68,7 @@ int main(int argc, char **argv)
my_bool first_argument_uses_wildcards=0;
char *wild;
MYSQL mysql;
my_bool reconnect;
static char **defaults_argv;
MY_INIT(argv[0]);
sf_leaking_memory=1; /* don't report memory leaks on early exits */
@@ -155,7 +156,8 @@ int main(int argc, char **argv)
error= 1;
goto error;
}
mysql.reconnect= 1;
reconnect= 1;
mysql_options(&mysql, MYSQL_OPT_RECONNECT, &reconnect);
switch (argc) {
case 0: error=list_dbs(&mysql,wild); break;