Comments - Issue with view definition in MariaDB 10.1.18
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.
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`
The function ifnull has the same issue. Thanks.