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

DESCRIBE [table] does not work for tables in other schemas #830

Closed
tbantle22 opened this issue Oct 9, 2024 · 0 comments · Fixed by #832
Closed

DESCRIBE [table] does not work for tables in other schemas #830

tbantle22 opened this issue Oct 9, 2024 · 0 comments · Fixed by #832
Assignees
Labels
bug Something isn't working

Comments

@tbantle22
Copy link
Contributor

doltgres=> \d
             List of relations
   Schema   |   Name    | Type  |  Owner
------------+-----------+-------+----------
 public     | myview    | view  | postgres
 public     | tablename | table | postgres
 testschema | testtable | table | postgres
(3 rows)

doltgres=> select current_schema();
 "current_schema"
------------------
 public
(1 row)

doltgres=> describe public.tablename;
 Field |     Type     | Null | Key | Default | Extra
-------+--------------+------+-----+---------+-------
 pk    | integer      | NO   | PRI |         |
 col1  | varchar(255) | YES  |     |         |
(2 rows)

doltgres=> describe testschema.testtable;
ERROR:  table not found: testtable (errno 1146) (sqlstate HY000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants