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

Fix query params inclusion in Query::toAST #224

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

H-Plus-Time
Copy link

(Please excuse the PR re-lodge)

As far as I can tell, the Options type is incapable of using params, so I've elected not to pass opt to astOptions (or astTableRef for that matter)

At the moment, getParams is exclusive - so you either get table.params, OR {...t1.params, t2.params} OR query.params. Merging a table or constituent tables' params with those embedded in a query makes sense, though it's uncertain which should have higher precedence - I'm open to implementing this (it's a tiny change anyway), let me know which order you'd prefer.

Closes #222

…ethods<Type> -> parse, and pull out query params if opt.query is supplied, and add a test for it.
…(func) -> map(dummyVar => func(dummyVar, opt)) refactors)
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

Successfully merging this pull request may close these issues.

Query.toAST invalid param reference
1 participant