1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

bugfix: Item_func_like::print() was losing ESCAPE clause

This commit is contained in:
Sergei Golubchik
2016-11-03 22:40:19 +01:00
parent 660355c1ac
commit 232dc91bc9
4 changed files with 33 additions and 4 deletions

View File

@ -254,3 +254,11 @@ DROP TABLE t1;
#
# End of 10.1 tests
#
create view v1 as select 'foo!' like 'foo!!', 'foo!' like 'foo!!' escape '!';
show create view v1;
View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select ('foo!' like 'foo!!') AS `'foo!' like 'foo!!'`,('foo!' like 'foo!!' escape '!') AS `'foo!' like 'foo!!' escape '!'` koi8r koi8r_general_ci
select * from v1;
'foo!' like 'foo!!' 'foo!' like 'foo!!' escape '!'
0 1
drop view v1;