Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Exception in Using CachedRowSet while populating the Resultset  RSS feed

amarshi mohanty
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

stmt = conn.prepareStatement(sqlStr.toString());
rs = stmt.executeQuery();

Due To last line i am getting an exception as:
java.sql.SQLException: Invalid column display size. Cannot be less than zero

but if i just execute teh resultset and iterate it ,all works fine.
m using PostGreSQL 8.1.
is there some pblm with postgresql when accessing from CachedRowSet.

Amarshi Mohanty
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!