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, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
I am using FireBird Data base. when i use the following queryselect gen_id(TIMER_GENERATOR,1) from timer_details;Here the sequence name is: TIMER_GENERATOR. schema name is: timer_detailswhen i execute above query i am getting thejava.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
