You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by Mirek Kopriva <mi...@gmail.com> on 2005/08/26 09:46:53 UTC

TypeHandlerCallback doesn't work as expected

Hi,
I'm encountering the folowing problem, can anybody help?

I need to retrive ResultSet because of legacy software, which is using
ResultSetMetadata to populate it's own data structures.
So I implemented TypeHandlerCallback's getResult, where I can get 
hold of it from the ResultGetter.
The problem is that if the select statement doesn't return any data
the 'getResult' method doesn't get called and the metadata is therefore not
available.
Do you know where could be the problem? Would there be another way
to get the ResultSet?
Thanks a lot,
Mirek

Re: TypeHandlerCallback doesn't work as expected

Posted by Clinton Begin <cl...@gmail.com>.
I'd imagine that this behaviour is entirely as expected.

If there's no results, then getResult isn't called...makes sense.

There's a feature request in JIRA about gaining access to metadata...no ETA 
though...

Cheers,
Clinton


On 8/26/05, Mirek Kopriva <mi...@gmail.com> wrote:
> 
> Hi,
> I'm encountering the folowing problem, can anybody help?
> 
> I need to retrive ResultSet because of legacy software, which is using
> ResultSetMetadata to populate it's own data structures.
> So I implemented TypeHandlerCallback's getResult, where I can get
> hold of it from the ResultGetter.
> The problem is that if the select statement doesn't return any data
> the 'getResult' method doesn't get called and the metadata is therefore 
> not
> available.
> Do you know where could be the problem? Would there be another way
> to get the ResultSet?
> Thanks a lot,
> Mirek
>