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

refactor(infer): consolidate two main functions #617

Merged
merged 11 commits into from
May 10, 2024
2 changes: 1 addition & 1 deletion db-service/lib/cqn4sql.js
Original file line number Diff line number Diff line change
Expand Up @@ -1664,7 +1664,7 @@ function cqn4sql(originalQuery, model) {
transformedFrom.$refLinks.splice(0, transformedFrom.$refLinks.length - 1)

let args = from.ref.at(-1).args
const subquerySource = transformedFrom.$refLinks[0].target
const subquerySource = getDefinition(transformedFrom.$refLinks[0].definition.target) || transformedFrom.$refLinks[0].target
if (subquerySource.params && !args) args = {}
const id = localized(subquerySource)
transformedFrom.ref = [args ? { id, args } : id]
Expand Down
Loading