diff options
Diffstat (limited to 'client/mysqlcheck.c')
-rw-r--r-- | client/mysqlcheck.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/client/mysqlcheck.c b/client/mysqlcheck.c index f0f25dbeb71..3e821b183bd 100644 --- a/client/mysqlcheck.c +++ b/client/mysqlcheck.c @@ -1086,7 +1086,6 @@ static void print_result() static int dbConnect(char *host, char *user, char *passwd) { - my_bool reconnect= 1; DBUG_ENTER("dbConnect"); if (verbose > 1) { @@ -1125,7 +1124,7 @@ static int dbConnect(char *host, char *user, char *passwd) DBerror(&mysql_connection, "when trying to connect"); DBUG_RETURN(1); } - mysql_options(&mysql_connection, MYSQL_OPT_RECONNECT, &reconnect); + mysql_connection.reconnect= 1; DBUG_RETURN(0); } /* dbConnect */ |