Results 1 to 5 of 5

Thread: Jdbc

  1. #1
    siwa is offline Member
    Join Date
    Nov 2007
    Posts
    3
    Rep Power
    0

    Default Jdbc

    Hi,
    Can any one help me please

    In my application the resultset got 49 records.
    rs.getFetchSize() shows 49, but when i say while(rs.next()) the pointer is not moving to the rs.next() block.
    Can anyone help me how to work out, and im sure the resultset is scrollable.

    Thanks.

  2. #2
    JavaBean's Avatar
    JavaBean is offline Moderator
    Join Date
    May 2007
    Posts
    1,270
    Rep Power
    9

    Default

    Can you post relevant section of your program?

  3. #3
    siwa is offline Member
    Join Date
    Nov 2007
    Posts
    3
    Rep Power
    0

    Default

    Thank you for ur reply,

    The code looks like this

  4. #4
    siwa is offline Member
    Join Date
    Nov 2007
    Posts
    3
    Rep Power
    0

    Default

    Thankyou for ur reply
    The code looks like this
    ResultSet rs=(ResultSet)element;
    //System.out.println(rs.getFetchSize())----it is giving 49
    while(rs.next())
    {
    if(flag)
    *******
    else ********

    }
    the control is not going into the rs.next() block, and Im sure the typecasting is correct as ResultSet.

    Thanks.

  5. #5
    JavaBean's Avatar
    JavaBean is offline Moderator
    Join Date
    May 2007
    Posts
    1,270
    Rep Power
    9

    Default

    That flag looks suspicious. I dont see anywhere you set it to true or false. I can comment better if you give the actual code there..

Similar Threads

  1. Replies: 0
    Last Post: 04-01-2008, 11:17 AM
  2. Replies: 0
    Last Post: 09-28-2007, 01:56 PM
  3. JDBC problem
    By Swamipsn in forum New To Java
    Replies: 1
    Last Post: 08-13-2007, 07:05 PM
  4. Ha-jdbc 2.0
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 07-17-2007, 06:40 PM
  5. Help with JDBC
    By Eric in forum JDBC
    Replies: 2
    Last Post: 06-28-2007, 07:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •