aspose file tools*
The moose likes JDBC and the fly likes result set problems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "result set problems" Watch "result set problems" New topic
Author

result set problems

peter cooke
Ranch Hand

Joined: Mar 16, 2004
Posts: 314
Hello Hoping someone can shed some light.


I have the following prepared statment:


When I execute it returns 4 rows in the result set. Manually running the query in command line returns 3 rows. I have never experienced a situation where one query returned a different # of rows from the other.


Any explanation for this behavior or suggestions on how to determine cause.

[edited to add line breaks so screen doesn't scroll right]
[ July 20, 2006: Message edited by: Jeanne Boyarsky ]

CIAO Peter M. Cooke
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30512
    
150

Peter,
I once saw that when I didn't close the ResultSet. Presumably due to a problem with the driver.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: result set problems