-
Notifications
You must be signed in to change notification settings - Fork 19
jdbc: Support Statement.getMoreResults #182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
AFAIK, we cannot receive multiple result sets from tarantool sql now. Are we must support it according to JDBC? |
Yeah, we need to support I renamed the issue to be more precise. |
Okay. Let's consider this issue as the task to appropriate support the API. |
Add support for two methods getMoreResults and its synonym getMoreResults(CLOSE_CURRENT_RESULT). Tarantool does not support multiple results per one query. It leads both KEEP_CURRENT_RESULT and CLOSE_ALL_RESULTS modes are not supported by the driver. Closes: #182
Add support for two methods getMoreResults and its synonym getMoreResults(CLOSE_CURRENT_RESULT). Tarantool does not support multiple results per one query. It leads both KEEP_CURRENT_RESULT and CLOSE_ALL_RESULTS modes are not supported by the driver. Closes: #182
Add support for two methods getMoreResults and its synonym getMoreResults(CLOSE_CURRENT_RESULT). Tarantool does not support multiple results per one query. It leads both KEEP_CURRENT_RESULT and CLOSE_ALL_RESULTS modes are not supported by the driver. Closes: #182
Add support for two methods getMoreResults and its synonym getMoreResults(CLOSE_CURRENT_RESULT). Tarantool does not support multiple results per one query. It leads both KEEP_CURRENT_RESULT and CLOSE_ALL_RESULTS modes are not supported by the driver. Closes: #182
Add support for two methods getMoreResults and its synonym getMoreResults(CLOSE_CURRENT_RESULT). Tarantool does not support multiple results per one query. It leads both KEEP_CURRENT_RESULT and CLOSE_ALL_RESULTS modes are not supported by the driver. Closes: tarantool#182
If there are multiple results or if the type or number of results returned by a Statement object are not known until run time, the Statement object should be executed with the method
execute
. The methodsgetMoreResults
,getUpdateCount
, andgetResultSet
can be used to retrieve all the results.By default, each call to the method getMoreResults closes any previous
ResultSet
object returned by the methodgetResultSet
. However, the methodgetMoreResults
may take a parameter that specifies whether aResultSet
object returned bygetResultSet
should be closed. The Statement interface defines three constants that can be supplied to the method getMoreResults:If the current result is an update count and not a
ResultSet
object, any parameter passed togetMoreResults
is ignored.To determine whether a driver implements this feature, an application can call the
DatabaseMetaData
methodsupportsMultipleOpenResults
.An example:
The text was updated successfully, but these errors were encountered: