Skip to content

Commit 8a1efa1

Browse files
author
Nirbhay Choubey
committed
Merge branch '10.0' into 10.0-galera
2 parents 7c42b47 + 9eba34f commit 8a1efa1

File tree

367 files changed

+4212
-1393
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

367 files changed

+4212
-1393
lines changed

Docs/mysql.info

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
MariaDB is in most aspects identical to MySQL.
22

33
Differences between MySQL and MariaDB can be found at:
4-
http://kb.askmonty.org/en/mariadb-versus-mysql-features/
5-
http://kb.askmonty.org/en/mariadb-versus-mysql-compatibility/
4+
https://mariadb.com/kb/en/mariadb-vs-mysql-features/
5+
https://mariadb.com/kb/en/mariadb-vs-mysql-compatibility/
66

77
The MariaDB manual can be found at:
8-
http://kb.askmonty.org/
8+
https://mariadb.com/kb/
99

1010
The MySQL Reference Manual is available in various formats on
1111
http://dev.mysql.com/doc.

Docs/sp-imp-spec.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@
243243
in the caller's frame is set in the new context as well.
244244
4) For each instruction, call its execute() method.
245245
The result is a pointer to the next instruction to execute (or NULL)
246-
if an error occured.
246+
if an error occurred.
247247
5) On success, set the new values of the OUT and INOUT parameters in
248248
the caller's frame.
249249

@@ -853,7 +853,7 @@
853853
// '*nextp' will be set to the index of the next instruction
854854
// to execute. (For most instruction this will be the
855855
// instruction following this one.)
856-
// Returns 0 on success, non-zero if some error occured.
856+
// Returns 0 on success, non-zero if some error occurred.
857857
virtual int execute(THD *, uint *nextp)
858858
}
859859

INSTALL-SOURCE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
Instructions for building MariaDB can be found at:
2-
https://kb.askmonty.org/en/compiling-mariadb-from-source/
2+
https://mariadb.com/kb/en/compiling-mariadb-from-source
33

INSTALL-WIN-SOURCE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
Up-to-date instructions about building MariaDB on Windows can be found
2-
at: http://kb.askmonty.org/en/building-mariadb-on-windows
2+
at: https://mariadb.com/kb/en/Building_MariaDB_on_Windows
33

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
MYSQL_VERSION_MAJOR=10
22
MYSQL_VERSION_MINOR=0
3-
MYSQL_VERSION_PATCH=24
3+
MYSQL_VERSION_PATCH=25

client/client_priv.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
22
Copyright (c) 2001, 2012, Oracle and/or its affiliates.
3+
Copyright (c) 2009, 2016, MariaDB
34
45
This program is free software; you can redistribute it and/or modify
56
it under the terms of the GNU General Public License as published by

client/mysql.cc

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/*
22
Copyright (c) 2000, 2014, Oracle and/or its affiliates.
3-
Copyright (c) 2009, 2013, Monty Program Ab.
4-
Copyright (c) 2013, 2014, SkySQL Ab
3+
Copyright (c) 2009, 2016, MariaDB
54
65
This program is free software; you can redistribute it and/or modify
76
it under the terms of the GNU General Public License as published by
@@ -96,9 +95,16 @@ extern "C" {
9695
#endif
9796
}
9897

99-
#if !defined(HAVE_VIDATTR)
100-
#undef vidattr
101-
#define vidattr(A) {} // Can't get this to work
98+
#ifdef HAVE_VIDATTR
99+
static int have_curses= 0;
100+
static void my_vidattr(chtype attrs)
101+
{
102+
if (have_curses)
103+
vidattr(attrs);
104+
}
105+
#else
106+
#undef HAVE_SETUPTERM
107+
#define my_vidattr(A) {} // Can't get this to work
102108
#endif
103109

104110
#ifdef FN_NO_CASE_SENSE
@@ -3358,7 +3364,7 @@ com_go(String *buffer,char *line __attribute__((unused)))
33583364

33593365
end:
33603366

3361-
/* Show warnings if any or error occured */
3367+
/* Show warnings if any or error occurred */
33623368
if (show_warnings == 1 && (warnings >= 1 || error))
33633369
print_warnings();
33643370

@@ -4740,9 +4746,9 @@ com_status(String *buffer __attribute__((unused)),
47404746

47414747
if (skip_updates)
47424748
{
4743-
vidattr(A_BOLD);
4749+
my_vidattr(A_BOLD);
47444750
tee_fprintf(stdout, "\nAll updates ignored to this database\n");
4745-
vidattr(A_NORMAL);
4751+
my_vidattr(A_NORMAL);
47464752
}
47474753
#ifdef USE_POPEN
47484754
tee_fprintf(stdout, "Current pager:\t\t%s\n", pager);
@@ -4810,9 +4816,9 @@ com_status(String *buffer __attribute__((unused)),
48104816
}
48114817
if (safe_updates)
48124818
{
4813-
vidattr(A_BOLD);
4819+
my_vidattr(A_BOLD);
48144820
tee_fprintf(stdout, "\nNote that you are running in safe_update_mode:\n");
4815-
vidattr(A_NORMAL);
4821+
my_vidattr(A_NORMAL);
48164822
tee_fprintf(stdout, "\
48174823
UPDATEs and DELETEs that don't use a key in the WHERE clause are not allowed.\n\
48184824
(One can force an UPDATE/DELETE by adding LIMIT # at the end of the command.)\n\
@@ -4905,10 +4911,11 @@ put_info(const char *str,INFO_TYPE info_type, uint error, const char *sqlstate)
49054911
{
49064912
if (!inited)
49074913
{
4908-
inited=1;
49094914
#ifdef HAVE_SETUPTERM
4910-
(void) setupterm((char *)0, 1, (int *) 0);
4915+
int errret;
4916+
have_curses= setupterm((char *)0, 1, &errret) != ERR;
49114917
#endif
4918+
inited=1;
49124919
}
49134920
if (info_type == INFO_ERROR)
49144921
{
@@ -4920,7 +4927,7 @@ put_info(const char *str,INFO_TYPE info_type, uint error, const char *sqlstate)
49204927
putchar('\a'); /* This should make a bell */
49214928
#endif
49224929
}
4923-
vidattr(A_STANDOUT);
4930+
my_vidattr(A_STANDOUT);
49244931
if (error)
49254932
{
49264933
if (sqlstate)
@@ -4939,9 +4946,9 @@ put_info(const char *str,INFO_TYPE info_type, uint error, const char *sqlstate)
49394946
tee_fputs(": ", file);
49404947
}
49414948
else
4942-
vidattr(A_BOLD);
4949+
my_vidattr(A_BOLD);
49434950
(void) tee_puts(str, file);
4944-
vidattr(A_NORMAL);
4951+
my_vidattr(A_NORMAL);
49454952
}
49464953
if (unbuffered)
49474954
fflush(file);

client/mysql_upgrade.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
Copyright (c) 2006, 2013, Oracle and/or its affiliates.
3-
Copyright (c) 2010, 2015, MariaDB
3+
Copyright (c) 2010, 2016, MariaDB
44
55
This program is free software; you can redistribute it and/or modify
66
it under the terms of the GNU General Public License as published by
@@ -649,7 +649,7 @@ static int get_upgrade_info_file_name(char* name)
649649
/*
650650
Read the content of mysql_upgrade_info file and
651651
compare the version number form file against
652-
version number wich mysql_upgrade was compiled for
652+
version number which mysql_upgrade was compiled for
653653
654654
NOTE
655655
This is an optimization to avoid running mysql_upgrade

client/mysqladmin.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
Copyright (c) 2000, 2014, Oracle and/or its affiliates.
3-
Copyright (c) 2010, 2015, MariaDB
3+
Copyright (c) 2010, 2016, MariaDB
44
55
This program is free software; you can redistribute it and/or modify
66
it under the terms of the GNU General Public License as published by

client/mysqlbinlog.cc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
#define TABLE TABLE_CLIENT
3535
#include "client_priv.h"
3636
#include <my_time.h>
37+
#include <sslopt-vars.h>
3738
/* That one is necessary for defines of OPTION_NO_FOREIGN_KEY_CHECKS etc */
3839
#include "sql_priv.h"
3940
#include "log_event.h"
@@ -1392,6 +1393,7 @@ static struct my_option my_options[] =
13921393
{"socket", 'S', "The socket file to use for connection.",
13931394
&sock, &sock, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0,
13941395
0, 0},
1396+
#include <sslopt-longopts.h>
13951397
{"start-datetime", OPT_START_DATETIME,
13961398
"Start reading the binlog at first event having a datetime equal or "
13971399
"posterior to the argument; the argument must be a date and time "
@@ -1599,6 +1601,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
15991601
DBUG_PUSH(argument ? argument : default_dbug_option);
16001602
break;
16011603
#endif
1604+
#include <sslopt-case.h>
16021605
case 'd':
16031606
one_database = 1;
16041607
break;
@@ -1748,6 +1751,18 @@ static Exit_status safe_connect()
17481751
return ERROR_STOP;
17491752
}
17501753

1754+
#ifdef HAVE_OPENSSL
1755+
if (opt_use_ssl)
1756+
{
1757+
mysql_ssl_set(mysql, opt_ssl_key, opt_ssl_cert, opt_ssl_ca,
1758+
opt_ssl_capath, opt_ssl_cipher);
1759+
mysql_options(mysql, MYSQL_OPT_SSL_CRL, opt_ssl_crl);
1760+
mysql_options(mysql, MYSQL_OPT_SSL_CRLPATH, opt_ssl_crlpath);
1761+
}
1762+
mysql_options(mysql,MYSQL_OPT_SSL_VERIFY_SERVER_CERT,
1763+
(char*)&opt_ssl_verify_server_cert);
1764+
#endif /*HAVE_OPENSSL*/
1765+
17511766
if (opt_plugindir && *opt_plugindir)
17521767
mysql_options(mysql, MYSQL_PLUGIN_DIR, opt_plugindir);
17531768

0 commit comments

Comments
 (0)