ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc.Heim...@prolifics.de
Subject Re: iBatis & Statement SQL Warnings
Date Mon, 19 Mar 2007 13:12:21 GMT
sqlMap.getDataSource().getConnection().getWarnings().

That will get you the first warning.
If there are more you can use getNextWarning from the resulting 
SQLWarning.


HTH,
Marc Heimann
Software Engineer

Prolifics Deutschland GmbH
Notkestr. 3, D-22607 Hamburg
phone +49 (0)40 890 667-70
fax    +49 (0)40 890 667-99
marc.heimann@prolifics.de
SOA... Building the Future into Your Business
Handelsregister: Hamburg, HRB 89903
Geschäftsführer: Ulrich Frotscher


"Azly Nacro" <azly.nacro@gmail.com> wrote on 19.03.2007 13:56:23:

> Hi,
> 
> We are using a SQLMapClient to make calls to some existing stored 
> procedures.  These stored procs are returning messages in the 
> statement SQLWarnings.
> Is there any way to retrieve those SQLWarnings from the SqlMapClient
> ?   If not how can we do that ? 
> 
> Thanks
> 
> 
> 
> -- 
> .    .--.
>     |o_o |
>     |:_/  |
>    //   \ \
>   (|     | ) 
> /'\_   _/`\  Azly Nacro
> \___)=(___/  Do you Linux ? 
Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message