Saturday, February 25, 2006

SQLException: Before start of result set

Today I was getting this error when making a SELECT query. This error is raised typically because you didn't call resultset.first() or resultset.next() function.

So before using a field from a record in MySQL


if ( Portal != null && Portal.next() ){
url = "//"+Portal.getString("portal_url")+".domain.com/"+ RS.getString("permalink");
}

1 Comments:

At 6:12 AM, Blogger Unknown said...

This comment has been removed by the author.

 

Post a Comment

<< Home

eXTReMe Tracker