Description:
|
I am trying to extend Quercus to support another database, but that database does not support TYPE_SCROLL_INSENSITIVE for queries, which means that neither the JdbcConnectionResource.query or JdbcStatementResource.prepare methods are working for me.
The patch that I have attached creates a new method, JdbcConnectionResource.canSeek(), and used that method to determine what parameters to add to a query. By default, it returns true, which means existing code continues to work as is. Then developers working on integrating other databases can override canSeek() when extending JdbcConnectionResource. (I have tested this.) |