1 |
commit: bb6f2115f03bcc765a2b1958016cbc1c6c9918c9 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 14 00:05:17 2018 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 14 00:24:32 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/mysql-extras.git/commit/?id=bb6f2115 |
7 |
|
8 |
Add patch to fix invalid type in MySQL 5.5 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/645894 |
11 |
|
12 |
00000_index.txt | 6 +++++ |
13 |
20030_all_mysql-5.5-fix-client-mysql-type.patch | 29 +++++++++++++++++++++++++ |
14 |
2 files changed, 35 insertions(+) |
15 |
|
16 |
diff --git a/00000_index.txt b/00000_index.txt |
17 |
index 19fb8a1..b5d3ee4 100644 |
18 |
--- a/00000_index.txt |
19 |
+++ b/00000_index.txt |
20 |
@@ -926,3 +926,9 @@ |
21 |
@pn mysql |
22 |
@pn mariadb |
23 |
@@ Fix tests for Perl 5.26+ compatibility |
24 |
+ |
25 |
+@patch 20030_all_mysql-5.5-fix-client-mysql-type.patch |
26 |
+@ver 5.05.58.00 to 5.05.99.99 |
27 |
+@pn mysql |
28 |
+@@ Fix type in mysql client |
29 |
+@@ Bug 645894 |
30 |
|
31 |
diff --git a/20030_all_mysql-5.5-fix-client-mysql-type.patch b/20030_all_mysql-5.5-fix-client-mysql-type.patch |
32 |
new file mode 100644 |
33 |
index 0000000..b62e192 |
34 |
--- /dev/null |
35 |
+++ b/20030_all_mysql-5.5-fix-client-mysql-type.patch |
36 |
@@ -0,0 +1,29 @@ |
37 |
+From https://github.com/MariaDB/server/commit/7338d3f221e33042dfcf5c1a245317aa7cb015a7 |
38 |
+From: Daniel Black <daniel.black@××××××.com> |
39 |
+Date: Fri, 14 Jul 2017 13:37:37 +1000 |
40 |
+Subject: [PATCH] client: mysql - fix type |
41 |
+ |
42 |
+field_names[x][y] is a pointer |
43 |
+ |
44 |
+client/mysql.cc: In function 'void build_completion_hash(bool, bool)': |
45 |
+client/mysql.cc:2855:37: error: invalid conversion from 'char' to 'char*' [-fpermissive] |
46 |
+ field_names[i][num_fields*2]= '\0'; |
47 |
+ |
48 |
+Bug: https://bugs.gentoo.org/645894 |
49 |
+--- |
50 |
+ client/mysql.cc | 2 +- |
51 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
52 |
+ |
53 |
+diff --git a/client/mysql.cc b/client/mysql.cc |
54 |
+index a965ced89c65..ca586a5590fb 100644 |
55 |
+--- a/client/mysql.cc |
56 |
++++ b/client/mysql.cc |
57 |
+@@ -2852,7 +2852,7 @@ You can turn off this feature to get a quicker startup with -A\n\n"); |
58 |
+ mysql_free_result(fields); |
59 |
+ break; |
60 |
+ } |
61 |
+- field_names[i][num_fields*2]= '\0'; |
62 |
++ field_names[i][num_fields*2]= NULL; |
63 |
+ j=0; |
64 |
+ while ((sql_field=mysql_fetch_field(fields))) |
65 |
+ { |