Skip to content

error message when calling drop table on a view doesn't make sense #10197

@angelamayxie

Description

@angelamayxie

mysql

mysql> drop table v;
ERROR 1051 (42S02): Unknown table 'db.v'
mysql> drop view v;
Query OK, 0 rows affected (0.01 sec)

dolt

tmp/main*> drop table v;
Unknown table 't_2'
tmp/main*> drop view v;
Empty set (0.01 sec)

while t_2 is a table that view v references, it is a known table and also not the name of the object being dropped.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions