Skip to content

Commit 872649c

Browse files
committed
Merge branch '5.5' into 10.0
2 parents 4995bcf + 4f1ad43 commit 872649c

File tree

109 files changed

+1309
-319
lines changed

Some content is hidden

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

109 files changed

+1309
-319
lines changed

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: 21 additions & 14 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
@@ -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: 1 addition & 1 deletion
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

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/mysqlcheck.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
Copyright (c) 2001, 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

client/mysqldump.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
Copyright (c) 2000, 2013, Oracle and/or its affiliates.
3-
Copyright (c) 2010, 2015, Monty Program Ab.
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/mysqlimport.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
Copyright (c) 2000, 2015, Oracle and/or its affiliates.
3-
Copyright (c) 2011, 2015, MariaDB
3+
Copyright (c) 2011, 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/mysqlshow.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
Copyright (c) 2000, 2015, 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/mysqlslap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
Copyright (c) 2005, 2015, 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

0 commit comments

Comments
 (0)