Removed some old Makefiles to avoid name conflict on Mac OS X
Changed in client library character-set-dir -> character-sets-dir Docs/manual.texi: Snmall update to ALTER TABLE and MyISAM tables client/mysql.cc: Moved SSL info to 'status' libmysql/libmysql.c: Fixed character-set-dir -> character-sets-dir sql/sql_string.cc: Small optimization
This commit is contained in:
parent
03e5b55fab
commit
238ea9dfd4
@ -35304,6 +35304,9 @@ Note that if you use any other option to @code{ALTER TABLE} than
|
|||||||
if the data wouldn't strictly need to be copied (like when you change the
|
if the data wouldn't strictly need to be copied (like when you change the
|
||||||
name of a column). We plan to fix this in the future, but as one doesn't
|
name of a column). We plan to fix this in the future, but as one doesn't
|
||||||
normally do @code{ALTER TABLE} that often this isn't that high on our TODO.
|
normally do @code{ALTER TABLE} that often this isn't that high on our TODO.
|
||||||
|
For MyISAM tables, you can speed up the index recreation part (which is the
|
||||||
|
slowest part of the recreation process) by setting the
|
||||||
|
@code{myisam_sort_buffer_size} variable to a high value.
|
||||||
|
|
||||||
@itemize @bullet
|
@itemize @bullet
|
||||||
@item
|
@item
|
||||||
|
@ -354,18 +354,6 @@ int main(int argc,char *argv[])
|
|||||||
mysql_thread_id(&mysql),mysql_get_server_info(&mysql));
|
mysql_thread_id(&mysql),mysql_get_server_info(&mysql));
|
||||||
put_info((char*) glob_buffer.ptr(),INFO_INFO);
|
put_info((char*) glob_buffer.ptr(),INFO_INFO);
|
||||||
|
|
||||||
#ifdef HAVE_OPENSSL
|
|
||||||
if (mysql.net.vio->ssl_ && SSL_get_cipher(mysql.net.vio->ssl_))
|
|
||||||
{
|
|
||||||
sprintf((char*) glob_buffer.ptr(),
|
|
||||||
"SSL cipher in use is %s\n", SSL_get_cipher(mysql.net.vio->ssl_));
|
|
||||||
put_info((char*) glob_buffer.ptr(),INFO_INFO);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
put_info("SSL is not in use\n",INFO_INFO);
|
|
||||||
#endif /* HAVE_OPENSSL */
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef HAVE_READLINE
|
#ifdef HAVE_READLINE
|
||||||
initialize_readline(my_progname);
|
initialize_readline(my_progname);
|
||||||
if (!status.batch && !quick && !opt_html && !opt_xml)
|
if (!status.batch && !quick && !opt_html && !opt_xml)
|
||||||
@ -2324,6 +2312,13 @@ com_status(String *buffer __attribute__((unused)),
|
|||||||
tee_fprintf(stdout, "Current user:\t\t%s\n",cur[1]);
|
tee_fprintf(stdout, "Current user:\t\t%s\n",cur[1]);
|
||||||
(void) mysql_fetch_row(result); // Read eof
|
(void) mysql_fetch_row(result); // Read eof
|
||||||
}
|
}
|
||||||
|
#ifdef HAVE_OPENSSL
|
||||||
|
if (mysql.net.vio->ssl_ && SSL_get_cipher(mysql.net.vio->ssl_))
|
||||||
|
tee_fprintf("SSL cipher in use is %s\n",
|
||||||
|
SSL_get_cipher(mysql.net.vio->ssl_));
|
||||||
|
else
|
||||||
|
#endif /* HAVE_OPENSSL */
|
||||||
|
tee_puts("SSL is not in use\n", stdout);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -698,7 +698,7 @@ static const char *default_options[]=
|
|||||||
"port","socket","compress","password","pipe", "timeout", "user",
|
"port","socket","compress","password","pipe", "timeout", "user",
|
||||||
"init-command", "host", "database", "debug", "return-found-rows",
|
"init-command", "host", "database", "debug", "return-found-rows",
|
||||||
"ssl-key" ,"ssl-cert" ,"ssl-ca" ,"ssl-capath",
|
"ssl-key" ,"ssl-cert" ,"ssl-ca" ,"ssl-capath",
|
||||||
"character-set-dir", "default-character-set", "interactive-timeout",
|
"character-sets-dir", "default-character-set", "interactive-timeout",
|
||||||
"connect-timeout", "local-infile", "disable-local-infile",
|
"connect-timeout", "local-infile", "disable-local-infile",
|
||||||
"replication-probe", "enable-reads-from-master", "repl-parse-query",
|
"replication-probe", "enable-reads-from-master", "repl-parse-query",
|
||||||
"ssl-cipher",
|
"ssl-cipher",
|
||||||
|
@ -40,19 +40,16 @@ extern void sql_element_free(void *ptr);
|
|||||||
bool String::real_alloc(uint32 arg_length)
|
bool String::real_alloc(uint32 arg_length)
|
||||||
{
|
{
|
||||||
arg_length=ALIGN_SIZE(arg_length+1);
|
arg_length=ALIGN_SIZE(arg_length+1);
|
||||||
|
str_length=0;
|
||||||
if (Alloced_length < arg_length)
|
if (Alloced_length < arg_length)
|
||||||
{
|
{
|
||||||
free();
|
free();
|
||||||
if (!(Ptr=(char*) my_malloc(arg_length,MYF(MY_WME))))
|
if (!(Ptr=(char*) my_malloc(arg_length,MYF(MY_WME))))
|
||||||
{
|
|
||||||
str_length=0;
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
|
||||||
Alloced_length=arg_length;
|
Alloced_length=arg_length;
|
||||||
alloced=1;
|
alloced=1;
|
||||||
}
|
}
|
||||||
Ptr[0]=0;
|
Ptr[0]=0;
|
||||||
str_length=0;
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user