Comments - Issue with view definition in MariaDB 10.1.18

7 years, 5 months ago Zeng Chun

If I moved hex in the function coalesce, the rewriting problem disappeared.

drop view if exists test_view;
create view test_view as select coalesce(hex(bins), '') as bins from test;
show create view test_view;
VIEW `test_view` AS select coalesce(hex(`test`.`bins`),'') AS `bins` from `test`

 
7 years, 5 months ago Zeng Chun

The function ifnull has the same issue. Thanks.

 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.