Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions test/compliance/SELECT.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
Expand Down
Loading