Fixed '*' in upcomming release

This commit is contained in:
Daniel
2021-08-27 10:45:11 +02:00
committed by Daniel Hutzel
parent f988088412
commit de796e5a89

View File

@@ -111,7 +111,7 @@ describe('cds.ql → cqn', () => {
.to.eql(SELECT.from(Foo).columns('*')) .to.eql(SELECT.from(Foo).columns('*'))
.to.eql(SELECT.from(Foo).columns((foo) => foo('*'))) .to.eql(SELECT.from(Foo).columns((foo) => foo('*')))
.to.eql({ .to.eql({
SELECT: { from: { ref: ['Foo'] }, columns: [{ ref: ['*'] }] }, SELECT: { from: { ref: ['Foo'] }, columns: [cdr ? '*' : { ref: ['*'] }] },
}) })
if (cdr === 'all') expect(parsed).to.eql(fluid) if (cdr === 'all') expect(parsed).to.eql(fluid)
@@ -162,7 +162,7 @@ describe('cds.ql → cqn', () => {
.to.eql({ .to.eql({
SELECT: { SELECT: {
from: { ref: ['Foo'] }, from: { ref: ['Foo'] },
columns: [{ ref: ['a'] }, { ref: ['b'] }, { ref: ['*'] }], columns: [{ ref: ['a'] }, { ref: ['b'] }, cdr ? '*' : { ref: ['*'] }],
}, },
}) })
}) })
@@ -182,7 +182,7 @@ describe('cds.ql → cqn', () => {
SELECT: { SELECT: {
from: { ref: ['Foo'] }, from: { ref: ['Foo'] },
columns: [ columns: [
{ ref: ['*'] }, cdr ? '*' : { ref: ['*'] },
{ ref: ['x'] }, { ref: ['x'] },
{ ref: ['car'], expand: ['*'] }, { ref: ['car'], expand: ['*'] },
{ {