-
Notifications
You must be signed in to change notification settings - Fork 43
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
Postgres issue with getting tables for a schema which has space in its name #119
Comments
What version of Postgres are you using? |
14.3 |
Looks like SELECT
rel.relname AS name
FROM
pg_class rel
WHERE
rel.relnamespace IN ('test schema'::regnamespace)
AND rel.relkind = 'r'
ORDER BY rel.relname is throwing an error, whereas SELECT
rel.relname AS name
FROM
pg_class rel
WHERE
rel.relnamespace IN ('"test schema"'::regnamespace)
AND rel.relkind = 'r'
ORDER BY rel.relname works as expected. This should be able to be resolved by adding an additional set of quotes in these pieces: knex-schema-inspector/lib/dialects/postgres.ts Lines 89 to 91 in 20d6ad0
Wanna open a PR for that @pavansandeep2910? |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
I am happy to raise the PR |
Hello @pavansandeep2910 @rijkvanzanten May I work on this bug? |
@Fasunle Yes, please. I am sorry for not continuing to work on this issue. I was and am currently busy with some other work. Thanks |
code:
error:
The text was updated successfully, but these errors were encountered: