fetch Open Result Set
A simple wrapper to ease the use of JDBC for novices. Returns the results of a query in the form of a JDBC ResultSet that is TYPE_FORWARD_ONLY and CONCUR_READ_ONLY . Errors in the SQL are the user's responsibility. Any exceptions are logged and squashed. It is the user's responsibility to close the ResultSet. That is, the statement used to create the ResultSet is not automatically closed.
The connection should be open and is not closed during this function. It is the caller's responsibility to close the connection when appropriate.
Return
the results of the query or null
Parameters
connection
A valid and open connection to a database.
sql
an SQL text string that is valid