dolthub / dolthub/dolt

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

Open
#10,197 7 comments 0 reactions 0 assignees View on GitHub
bad error message good repro
Dominant language
Go
Stars
24.4k
Forks
873
Avg merge
1d 5h
Merged PRs (30d)
108

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.