borinquenkid commented on PR #15561:
URL: https://github.com/apache/grails-core/pull/15561#issuecomment-4208825067
## H7 `gorm` Functional Test Failures — Bug Report
Running `grails-test-examples-gorm` with `-PhibernateVersion=7` produces
13 failures across 4 specs.
Below are the 5 distinct root causes.
---
### Bug 1 (Intentional) — `executeQuery` / `executeUpdate` plain String
blocked
| | |
|---|---|
| **Tests** | `test basic HQL query`, `test HQL aggregate functions`,
`test HQL group by`, `test executeUpdate for bulk operations` |
| **Spec** | `GormCriteriaQueriesSpec` |
| **Error** | `UnsupportedOperationException: executeQuery(CharSequence)
only accepts a Groovy GString with interpolated parameters` |
**Description:** H7 intentionally rejects `executeQuery("from Book where
inStock = true")` when no parameters are passed. The same tightening was
already applied to `executeUpdate`. Callers must use
`executeQuery('...', [:])` or a GString with interpolated params.
> This is by design. The test bodies need to adopt the parameterized form
— not a GORM bug.
---
~/IdeaProjects/grails-core [⎇ ci/hibernate-matrix-testing] [#15561]
Claude Sonnet 4.6 (medium)
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
❯
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]