diff --git a/test/compliance/SELECT.test.js b/test/compliance/SELECT.test.js index 45c40d292..37ef5a7a5 100644 --- a/test/compliance/SELECT.test.js +++ b/test/compliance/SELECT.test.js @@ -163,6 +163,12 @@ describe('SELECT', () => { await expect(cds.run(cqn)).rejected }) + test('select func path expression', async () => { + const { Authors } = cds.entities('complex.associations') + const cqn = cds.ql`SELECT count(books) FROM ${Authors}` + await cds.run(cqn) + }) + test('select function (wrong)', async () => { const { globals } = cds.entities('basic.projection') const cqn = cds.ql`SELECT 'func' as function : cds.String FROM ${globals}`