diff options
-rw-r--r-- | client/mysqlimport.c | 2 | ||||
-rw-r--r-- | include/violite.h | 2 | ||||
-rw-r--r-- | sql/sql_show.cc | 5 |
3 files changed, 7 insertions, 2 deletions
diff --git a/client/mysqlimport.c b/client/mysqlimport.c index 809f73d14b6..ccd6932e25b 100644 --- a/client/mysqlimport.c +++ b/client/mysqlimport.c @@ -406,7 +406,7 @@ static MYSQL *db_connect(char *host, char *database, if (opt_use_ssl) mysql_ssl_set(mysql, opt_ssl_key, opt_ssl_cert, opt_ssl_ca, opt_ssl_capath, opt_ssl_cipher); - mysql_options(&mysql_connection,MYSQL_OPT_SSL_VERIFY_SERVER_CERT, + mysql_options(mysql,MYSQL_OPT_SSL_VERIFY_SERVER_CERT, (char*)&opt_ssl_verify_server_cert); #endif if (opt_protocol) diff --git a/include/violite.h b/include/violite.h index f17fabaa909..4837ade64b4 100644 --- a/include/violite.h +++ b/include/violite.h @@ -121,7 +121,7 @@ struct st_VioSSLFd *new_VioSSLAcceptorFd(const char *key_file, const char *cert_file, const char *ca_file,const char *ca_path, const char *cipher); -void free_vio_ssl_acceptor_fd(struct st_VioSSLAcceptorFd *fd); +void free_vio_ssl_acceptor_fd(struct st_VioSSLFd *fd); #endif /* HAVE_OPENSSL */ #ifdef HAVE_SMEM diff --git a/sql/sql_show.cc b/sql/sql_show.cc index f2304864572..20b0d033aea 100644 --- a/sql/sql_show.cc +++ b/sql/sql_show.cc @@ -938,6 +938,11 @@ store_create_info(THD *thd, TABLE_LIST *table_list, String *packet, MODE_DB2 | MODE_MAXDB | MODE_ANSI)) != 0; + + bool limited_mysql_mode= (thd->variables.sql_mode & + (MODE_NO_FIELD_OPTIONS | MODE_MYSQL323 | + MODE_MYSQL40)) != 0; + DBUG_ENTER("store_create_info"); DBUG_PRINT("enter",("table: %s", table->s->table_name.str)); |