Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show tables does not respect database scope #6812

Closed
rjatwal opened this issue Mar 21, 2023 · 2 comments
Closed

Show tables does not respect database scope #6812

rjatwal opened this issue Mar 21, 2023 · 2 comments

Comments

@rjatwal
Copy link
Contributor

rjatwal commented Mar 21, 2023

What happens?

Show table is not currently limited to a single database.

To Reproduce

 ./duckdb -unsigned
v0.7.2-dev899 88b1bfa74d
Enter ".help" for usage hints.
D attach 'db1.db';
D attach 'db2.db';
D  create table db1.table_in_db1(i int);
D create table db2.table_in_db2(i int);
D show tables;
┌──────────────┐
│     name     │
│   varchar    │
├──────────────┤
│ table_in_db1 │
│ table_in_db2 │
└──────────────┘
D use db1;
D show tables;
┌──────────────┐
│     name     │
│   varchar    │
├──────────────┤
│ table_in_db1 │
│ table_in_db2 │
└──────────────┘
D
``

### OS:

linux

### DuckDB Version:

v0.7.1

### DuckDB Client:

CLI

### Full Name:

RJ Atwal

### Affiliation:

MotherDuck

### Have you tried this on the latest `master` branch?

- [X] I agree

### Have you tried the steps to reproduce? Do they include all relevant data and configuration? Does the issue you report still appear there?

- [X] I agree
@rjatwal
Copy link
Contributor Author

rjatwal commented Mar 21, 2023

#6816

@Mytherin
Copy link
Collaborator

Mytherin commented May 8, 2023

Should be fixed now

@Mytherin Mytherin closed this as completed May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants