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 ra...@wipro.com on 2006/07/21 17:57:39 UTC

Urgent help needed -- queryForList() problem



Hi,

   In my application I am using Ibatis as datamapper and firebird as the
backend.

In my database, I have 10 records and I want to get first 5 of them.

Here I am using
         sqlMap.queryForList("getUsersList", null, 0, 5) to retrive the
first 5 records from the database.

 But the query is fetching only 3 records.

When I give the boundaries as (0,7) - it is fetching 4 records only.

but my requirenment is to get the records in between the specified
boundaries. i.e, if boundary is specified as (0,7) it should retrieve 7
records, starting from 0.

I am unable to find the problem? Can any one help me in this regard?


Thanks n Regards,
==============
Rambabu Piridi.




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

Re: Urgent help needed -- queryForList() problem

Posted by Nathan Maves <Na...@Sun.COM>.
Could use please post your sqlMap query and result map.


On Jul 21, 2006, at 9:57 AM, rambabu.piridi@wipro.com wrote:

>
>
> Hi,
>
>    In my application I am using Ibatis as datamapper and firebird  
> as the backend.
>
> In my database, I have 10 records and I want to get first 5 of them.
>
> Here I am using
>          sqlMap.queryForList("getUsersList", null, 0, 5) to retrive  
> the first 5 records from the database.
>
>  But the query is fetching only 3 records.
>
> When I give the boundaries as (0,7) - it is fetching 4 records only.
>
> but my requirenment is to get the records in between the specified  
> boundaries. i.e, if boundary is specified as (0,7) it should  
> retrieve 7 records, starting from 0.
>
> I am unable to find the problem? Can any one help me in this regard?
>
>
> Thanks n Regards,
> ==============
> Rambabu Piridi.
>
>
> 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