We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NULLS first | last
When defining null first | last on order by, cqn2sql does not yield the sorting modifier.
null first | last
order by
cqn2sql
> q = SELECT.from(Authors).columns('name', 'dateOfDeath') .orderBy`dateOfDeath asc nulls first` cds.ql { SELECT: { from: { ref: [ 'sap.capire.bookshop.Authors' ] }, columns: [ { ref: [ 'name' ] }, { ref: [ 'dateOfDeath' ] } ], orderBy: [ { ref: [ 'dateOfDeath' ], sort: 'asc', nulls: 'first' } ] } } > q.forSQL() cds.ql { SELECT: { from: { ref: [ 'sap.capire.bookshop.Authors' ], as: 'Authors' }, columns: [ { ref: [ 'Authors', 'name' ] }, { ref: [ 'Authors', 'dateOfDeath' ] } ], orderBy: [ { ref: [ 'dateOfDeath' ], sort: 'asc', nulls: 'first' } ] } } > q.toSQL() { sql: ` SELECT json_insert( '{}', '$."name"', name, '$."dateOfDeath"', dateOfDeath ) as _json_ FROM ( SELECT Authors.name, Authors.dateOfDeath as dateOfDeath FROM sap_capire_bookshop_Authors as Authors ORDER BY dateOfDeath ASC ) `, values: [] }
The text was updated successfully, but these errors were encountered:
fix: consider nulls first | last on orderBy
nulls first | last
orderBy
2edc632
fix #1062
fix: consider nulls first | last on orderBy (#1064)
c6bed60
patricebender
Successfully merging a pull request may close this issue.
When defining
null first | last
onorder by
,cqn2sql
does not yield the sorting modifier.The text was updated successfully, but these errors were encountered: