mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
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.
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user