Skip to content
New issue

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

fix: Force sql_simple_queries to quote in outer select #954

Merged
merged 4 commits into from
Dec 18, 2024

Conversation

BobdenOs
Copy link
Contributor

No description provided.

@@ -426,7 +426,7 @@ class HANAService extends SQLService {
q.as = q.SELECT.from.as
}

if (rowNumberRequired || q.SELECT.columns.length !== aliasedOutputColumns.length) {
if (cds.env.features.sql_simple_queries || rowNumberRequired || q.SELECT.columns.length !== aliasedOutputColumns.length) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wouldn't it be enough to only do this for orderBy or having clauses? Or are there more cases where the nesting is really needed?

@johannes-vogel johannes-vogel enabled auto-merge (squash) December 18, 2024 13:36
@johannes-vogel johannes-vogel merged commit 2071dc8 into main Dec 18, 2024
3 of 4 checks passed
@johannes-vogel johannes-vogel deleted the fix/sql_simple_queries-orderby-result-column branch December 18, 2024 13:44
@cap-bots cap-bots mentioned this pull request Dec 18, 2024
johannes-vogel pushed a commit that referenced this pull request Dec 18, 2024
🤖 I have created a release *beep* *boop*
---


<details><summary>db-service: 1.16.2</summary>

##
[1.16.2](db-service-v1.16.1...db-service-v1.16.2)
(2024-12-18)


### Fixed

* do not override .toJSON of buffers
([#949](#949))
([ed52f72](ed52f72))
</details>

<details><summary>hana: 1.5.2</summary>

##
[1.5.2](hana-v1.5.1...hana-v1.5.2)
(2024-12-18)


### Fixed

* Force `sql_simple_queries` to quote in outer select
([#954](#954))
([2071dc8](2071dc8))
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants