apache / apache/grails-core

dbm-db-doc is not working with grailsChange

Open
#14,483 0 comments 0 reactions 0 assignees View on GitHub
relates-to: grails-hibernate5-dbmigration
Dominant language
Groovy
Stars
2.9k
Forks
975
Avg merge
1d 22h
Merged PRs (30d)
92

Description

Hi, I find the `dbm-db-doc` is not working with grailsChange which has sql inside:

```
grailsChange {
change {
sql.execute("insert x into y")
}
}
```

If you run the `dbm-db-doc` you will see the sql gets triggered. This generally will throw an exception which fail the `dbm-db-doc`.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with the shown grailsChange and sql.execute example while running dbm-db-doc. Trace how dbm-db-doc handles grailsChange blocks; done means documentation generation no longer executes the embedded SQL or fails with its exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.