Title: Message
What method call are you using to execute the query in iBATIS? How many results are getting returned when you run the query at the command prompt? If you are getting more than one result, which it seems that you are, then you need to call the queryForList() method instead of the queryForObject()
 
-Richard
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 14, 2006 4:29 AM
To: [email protected]
Subject: Is Error in Ibatis ?

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

Reply via email to