summaryrefslogtreecommitdiff
path: root/sql/sql_string.cc
diff options
context:
space:
mode:
authorunknown <anozdrin/alik@alik.>2006-12-19 15:32:02 +0300
committerunknown <anozdrin/alik@alik.>2006-12-19 15:32:02 +0300
commitb66ab7f80b629c6d33d7e4ac01002cbb7676df18 (patch)
treeaceea9637cb5d76fdf857a8c509a47c3c949fb15 /sql/sql_string.cc
parentd501b2dd3966d4f236b46a3b3bb7b89929e25716 (diff)
downloadmariadb-git-b66ab7f80b629c6d33d7e4ac01002cbb7676df18.tar.gz
Fix for BUG#24293: '\Z' token is not handled correctly in views.
If SELECT-part of CREATE VIEW statement contains '\Z', it is not handled correctly. The problem was in String::print(). Symbol with code 032 (26) is replaced with '\z', which is not supported by the lexer. The fix is to replace the symbol with '\Z'. mysql-test/r/view.result: Update result file. mysql-test/t/view.test: Add test case for BUG#24293. sql/sql_string.cc: We should replace 032 with \Z, since lexer does not understand \z.
Diffstat (limited to 'sql/sql_string.cc')
-rw-r--r--sql/sql_string.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_string.cc b/sql/sql_string.cc
index 85ff1fddc45..10ce72e9b9f 100644
--- a/sql/sql_string.cc
+++ b/sql/sql_string.cc
@@ -1033,8 +1033,8 @@ void String::print(String *str)
case '\r':
str->append(STRING_WITH_LEN("\\r"));
break;
- case 26: //Ctrl-Z
- str->append(STRING_WITH_LEN("\\z"));
+ case '\032': // Ctrl-Z
+ str->append(STRING_WITH_LEN("\\Z"));
break;
default:
str->append(c);