I am trying to execute a raw sql query using something similar to
def dataSource; Sql sql = new Sql(dataSource);
But it looks like this is being performed by a separate transaction. Therefore, it skips all (uncommitted) changes made before it in the service method.
What is the best way to run a raw SQL query in the current transaction?
Amit
source share