View | Details | Raw Unified | Return to bug 127915
Collapse All | Expand All

(-)./Makefile 2008-10-07 05:50:21.000000000 -0400 (-1 / +1 lines)
Lines 7-13 Link Here
7
7
8
PORTNAME?=     mysql
8
PORTNAME?=     mysql
9
PORTVERSION=   5.1.28
9
PORTVERSION=   5.1.28
10
PORTREVISION?= 0
10
PORTREVISION?= 1
11
CATEGORIES=    databases
11
CATEGORIES=    databases
12
MASTER_SITES=  ${MASTER_SITE_MYSQL}
12
MASTER_SITES=  ${MASTER_SITE_MYSQL}
13
MASTER_SITE_SUBDIR=    MySQL-5.1
13
MASTER_SITE_SUBDIR=    MySQL-5.1
(-)./files/patch-client:mysql.cc 2008-10-07 05:51:58.000000000 -0400 (+27 lines)
Line 0 Link Here
1
--- client/mysql.cc.orig       2008-08-28 11:39:27.000000000 -0400
2
+++ client/mysql.cc    2008-10-07 05:44:20.000000000 -0400
3
@@ -3372,9 +3372,12 @@
4
   {
5
     while((field = mysql_fetch_field(result)))
6
     {
7
-      tee_fprintf(PAGER, "<TH>%s</TH>", (field->name ? 
8
-                                       (field->name[0] ? field->name : 
9
-                                        " &nbsp; ") : "NULL"));
10
+      tee_fputs("<TH>", PAGER);
11
+      if (field->name && field->name[0])
12
+      xmlencode_print(field->name, field->name_length);
13
+      else
14
+      tee_fputs(field->name ? " &nbsp; " : "NULL", PAGER);
15
+      tee_fputs("</TH>", PAGER);
16
     }
17
     (void) tee_fputs("</TR>", PAGER);
18
   }
19
@@ -3387,7 +3390,7 @@
20
     for (uint i=0; i < mysql_num_fields(result); i++)
21
     {
22
       (void) tee_fputs("<TD>", PAGER);
23
-      safe_put_field(cur[i],lengths[i]);
24
+      xmlencode_print(cur[i],lengths[i]);
25
       (void) tee_fputs("</TD>", PAGER);
26
     }
27
     (void) tee_fputs("</TR>", PAGER);
(-)./files/patch-mysql-test:mysql.result 2008-10-07 06:13:49.000000000 -0400 (+11 lines)
Line 0 Link Here
1
--- mysql-test/r/mysql.result.orig     2008-08-28 12:08:36.000000000 -0400
2
+++ mysql-test/r/mysql.result  2008-10-07 05:45:48.000000000 -0400
3
@@ -182,6 +182,8 @@
4
 This is a file starting with UTF8 BOM 0xEFBBBF
5
 End of 5.0 tests
6
 WARNING: --server-arg option not supported in this configuration.
7
<TABLE BORDER=1><TR><TH>&lt;a&gt;</TH></TR><TR><TD>&lt;a&gt;</TD></TR></TABLE>
8
+End of 5.1 tests
9
 Warning (Code 1286): Unknown table engine 'nonexistent'
10
 Warning (Code 1266): Using storage engine MyISAM for table 't2'
11
 Warning (Code 1286): Unknown table engine 'nonexistent2'
(-)./files/patch-mysql-test:mysql.test 2008-10-07 05:54:12.000000000 -0400 (+17 lines)
Line 0 Link Here
1
--- mysql-test/t/mysql.test.orig       2008-08-28 12:08:36.000000000 -0400
2
+++ mysql-test/t/mysql.test    2008-10-07 05:48:59.000000000 -0400
3
@@ -301,6 +301,14 @@
4
 --enable_query_log
5
 
6
 #
7
+# Bug #27884: mysql --html does not quote HTML special characters in output
8
+# 
9
+--exec $MYSQL --html test -e "select '< & >' as \`<\`"
10
+
11
+--echo
12
+--echo End of 5.1 tests
13
+
14
+#
15
 # Bug #25146: Some warnings/errors not shown when using --show-warnings
16
 #
17

Return to bug 127915