ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yee, Richard K CTR DMDC" <Richard.Yee....@osd.pentagon.mil>
Subject RE: Is Error in Ibatis ?
Date Wed, 14 Jun 2006 16:12:38 GMT
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: suresh.dodda@wipro.com [mailto:suresh.dodda@wipro.com] 
Sent: Wednesday, June 14, 2006 4:29 AM
To: user-java@ibatis.apache.org
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
	


Mime
View raw message