John O'Hanley
unread,Dec 22, 2012, 2:14:05 PM12/22/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to web4j...@googlegroups.com
A user has reported the following problem, while using SqlLite:
14 Dec, 2012 11:22:05 AM hirondelle.web4j.database.SqlFetcher fetchRows
SEVERE: Cannot execute fetch: java.sql.SQLException: SQLite only
supports TYPE_FORWARD_ONLY cursors SQLite only supports
TYPE_FORWARD_ONLY cursors LIST_FACILITIES {
fSqlText = SELECT Id, Name
FROM Facility
ORDER BY Name
Params = []
}
The cause: internally, when web4j asks for a ResultSet, it uses SqlStatement.java line 200:
// allow scrolling of SELECT result sets
result = aConnection.prepareStatement(aSqlText, ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
A cursory glance at the code base leads me to believe that this line could be changed to scroll-forward, which is the default:
result = aConnection.prepareStatement(aSqlText, ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);
Would anyone know of any objection to doing that? Has anyone had to make this modification to their local code base?
John