mirror of
https://github.com/MariaDB/server.git
synced 2025-11-06 13:10:12 +03:00
Support of views wasn't implemented for the TRUNCATE statement. Now TRUNCATE on views has the same semantics as DELETE FROM view: mysql_truncate() checks whether the table is a view and falls back to delete if so. In order to initialize properly the LEX::updatable for a view st_lex::can_use_merged() now allows usage of merged views for the TRUNCATE statement.
1.9 KiB
1.9 KiB