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

getTables crashes on loading #8

Closed
dfioravanti opened this issue May 24, 2023 · 1 comment
Closed

getTables crashes on loading #8

dfioravanti opened this issue May 24, 2023 · 1 comment

Comments

@dfioravanti
Copy link

The getTables function @adminjs/sql/lib/dialects/postgres.parser.js:82 is crashing because it tries to query the information schema with the following query

SELECT table_name
FROM information_schema.tables
AND table_type='BASE TABLE';

which is not a valid SQL query. I am not sure what the actual query is supposed to be. I tried to change it to

SELECT table_name
FROM information_schema.tables
WHERE table_schema='${schemaName}'

but it hangs. Any idea?

@dfioravanti
Copy link
Author

Closed with #6

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

1 participant