MDEV-17978 Server crash in SHOW CREATE SEQUENCE on a broken view
The problem was that we didn't check on open of sequence if the table is a view, which is not allowed. We are now generating a proper error message for this case.