This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

why con.createStatement() throw Exception?

 
yub huang
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when i use "stmt = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);"
the exception was throwed. but the "stmt = con.createStatement();" is really ok?
can someone help me?
 
Jamie Robertson
Ranch Hand
Posts: 1879
MySQL Database Suse
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the exception message? If it is along the lines of "method not implemented" or "method not supported", then your driver is not able to create scrollable resultsets. You'll have to upgrade your driver to one that supports scrollable resultsets or make due with FORWARD_ONLY results.
Jamie
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic