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

Enum mapping doesn't being recognized when used in a query #166

Open
y-teicher opened this issue Jul 5, 2023 · 1 comment
Open

Enum mapping doesn't being recognized when used in a query #166

y-teicher opened this issue Jul 5, 2023 · 1 comment

Comments

@y-teicher
Copy link

Describe the bug
When defining in .eslintrc.js file under overrides.types a mapping of an enum, safeql doesn't recognize it when the enum is used in a query (and not as a type).
The .eslintrc.js file:
Screenshot 2023-07-05 at 12 11 13
The error:
Screenshot 2023-07-05 at 12 06 52

To Reproduce
Use a enum as a parameter of a query

Expected behavior
No error should appear

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: iOS
  • PostgreSQL version: 15
  • Version: 0.1.0
@Newbie012
Copy link
Collaborator

It seems like I didn't take into consideration enums. I'll push a fix today or in a few days

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