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

Cannot read properties of undefined in sql hint #99

Closed
lana-k opened this issue Jul 25, 2022 · 0 comments
Closed

Cannot read properties of undefined in sql hint #99

lana-k opened this issue Jul 25, 2022 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@lana-k
Copy link
Owner

lana-k commented Jul 25, 2022

There are some cases when sql hints are returned as strings, not as objects. E.g.

SELECT house.

the hint result will look like

['house.name', 'house.points']

See more examples in code mirror tests.

That leads to the error
Uncaught TypeError: Cannot read properties of undefined (reading 'toUpperCase') when checking if the single hint and the current token are the same.

@lana-k lana-k added the bug Something isn't working label Jul 25, 2022
@lana-k lana-k added this to the v0.21.1 milestone Jul 25, 2022
@lana-k lana-k closed this as completed Jul 29, 2022
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

No branches or pull requests

1 participant