ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Debasish Dutta Roy" <debasish.dutta...@gmail.com>
Subject Re: Is Error in Ibatis ?
Date Wed, 14 Jun 2006 17:53:58 GMT
I faced a similar problem. The answer is correct as provided by Richard.

The mistake that I was making :

I was running the query in a loop and for one of the id it was giving a
single result for some other id it was giving muliple results. Yours may be
a similar case. Just follow what Richard says.

On 6/14/06, suresh.dodda@wipro.com <suresh.dodda@wipro.com> wrote:
>  I am using FireBird Data base. when i use the following query
> select gen_id(TIMER_GENERATOR,1) from timer_details;
> Here the sequence name is: TIMER_GENERATOR. schema name is: timer_details
> when i execute above query i am getting the
> java.sql.SQLException: Error: executeQueryForObject returned too many
> results.
> when i execute the same query at the command prompt it works fine.
> Is problem in Ibatis?.
> The information contained in this electronic message and any attachments
> to this message are intended for the exclusive use of the addressee(s) and
> may contain proprietary, confidential or privileged information. If you are
> not the intended recipient, you should not disseminate, distribute or copy
> this e-mail. Please notify the sender immediately and destroy all copies of
> this message and any attachments.
> WARNING: Computer viruses can be transmitted via email. The recipient
> should check this email and any attachments for the presence of viruses. The
> company accepts no liability for any damage caused by any virus transmitted
> by this email.
> www.wipro.com

View raw message