Commit 5009663b authored by unknown's avatar unknown

fixed printing of characters casting operartion (BUG#5264)


mysql-test/r/view.result:
  view with cast operation
mysql-test/t/view.test:
  view with cast operation
sql/item_timefunc.cc:
  fixed printing of characters casting operartion
parent 292f8adf
......@@ -1238,3 +1238,11 @@ c
4
drop view v1;
drop table t1;
create view v1 as select cast(1 as char(3));
show create view v1;
Table Create Table
v1 CREATE VIEW `test`.`v1` AS select cast(1 as char(3) charset latin1) AS `cast(1 as char(3))`
select * from v1;
cast(1 as char(3))
1
drop view v1;
......@@ -1188,3 +1188,11 @@ create view v1(c) as select a+1 from t1 where b >= 4;
select c from v1 where exists (select * from t1 where a=2 and b=c);
drop view v1;
drop table t1;
#
# view with cast operation
#
create view v1 as select cast(1 as char(3));
show create view v1;
select * from v1;
drop view v1;
......@@ -2011,7 +2011,7 @@ void Item_char_typecast::print(String *str)
if (cast_cs)
{
str->append(" charset ", 9);
str->append(cast_cs->name);
str->append(cast_cs->csname);
}
str->append(')');
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment