[ 
https://issues.apache.org/jira/browse/GROOVY-10512?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17498774#comment-17498774
 ] 

Philippe Gaudin commented on GROOVY-10512:
------------------------------------------

[~paulk],

Thanks for your comment !
 * for {{{}Connection{}}}, it is indeed possible to get the warnings via 
{{sql.connection.warnings}}
 * for {{eachRow}} I don't see a way to get the ResultSet

But I need a way to get the warnings after an {{sql.execute}} like:
{code:java}
sql.execute("ANALYZE ${tempTableName}" as String)
{code}
Maybe via a new {{afterStatement}} closure ?

> groovy.sql.Sql : provide a way to get the SQLWarning of a Statement, 
> Connection, ResultSet
> ------------------------------------------------------------------------------------------
>
>                 Key: GROOVY-10512
>                 URL: https://issues.apache.org/jira/browse/GROOVY-10512
>             Project: Groovy
>          Issue Type: New Feature
>          Components: SQL processing
>    Affects Versions: 3.0.9
>            Reporter: Philippe Gaudin
>            Priority: Minor
>
> I need a way to be able to retrieve the possible *{{java.sql.SQLWarning}}* on 
> a {{Statement}}, {{Connection}} and {{ResultSet}}.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to