From c462f05013e4bfa9e21da662b6d8d4ed3af0273a Mon Sep 17 00:00:00 2001 From: Bob den Os Date: Wed, 18 Dec 2024 08:58:20 +0100 Subject: [PATCH] Remove sub query alias check --- hana/lib/HANAService.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hana/lib/HANAService.js b/hana/lib/HANAService.js index 681392e1e..97f70bbca 100644 --- a/hana/lib/HANAService.js +++ b/hana/lib/HANAService.js @@ -346,7 +346,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