InstantDB Project
About InstantDB
Project Mail Lists
Short History
Reporting Bugs
Screen Shots
3rd Party Examples
FAQs

Software
Downloads
Documentation
CVS Repositories
Roadmap
License

About Enhydra.org
Who We Are
News, Articles & Events
Getting Involved
Contact Us

Community
Demos
Contributions
Resources
Case Studies
On The Edge! -NEW-
Commercial Vendors


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

InstantDB: Problem with ResultSet in InstantDB


Hello there,

I have created a resultset like this.........

PreparedStatement psmtCount = mConn.prepareStatement( "SELECT COUNT(ID) FROM "
+ table + " WHERE TYPE = ?" );
psmtCount.setString(1,typeName);
ResultSet rstCount = psmtCount.executeQuery();
int rows = 0;
if( rstCount.next() ) {
       rows = rstCount.getInt(1);
}

actually this ResultSet is null as the query returns nothing but using
InstantDB as database control is still going in if block, while with other
databases it is not.......

Please help......

Tariq

____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1
-----------------------------------------------------------------------------
To unsubscribe from this mailing list, send email to majordomo@enhydra.org
with the text "unsubscribe instantdb" in the body of the email.
If you have other questions regarding this mailing list, send email to
the list admin at owner-instantdb@enhydra.org.