Skip to content

Commit

Permalink
fix: Remove sub query alias check (#953)
Browse files Browse the repository at this point in the history
Gap found in the last release causes more trouble then `undefined` does.
  • Loading branch information
BobdenOs authored Feb 26, 2025
1 parent b090ccd commit e5a716c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hana/lib/HANAService.js
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ class HANAService extends SQLService {
const walkAlias = q => {
if (q.args) return q.as || walkAlias(q.args[0])
if (q.SELECT?.from) return walkAlias(q.SELECT?.from)
return q.as || cds.error`Missing alias for subquery`
return q.as
}
const alias = q.as // Use query alias as path name
q.as = walkAlias(q) // Use from alias for query re use alias
Expand Down

0 comments on commit e5a716c

Please sign in to comment.