Details
-
Task
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
Description
Add function `executeStatement` Sesssion and SessionPool, referring to java.sql.Statement#execute(java.lang.String).
/** * Executes the given SQL statement, which may return multiple results. * In some (uncommon) situations, a single SQL statement may return * multiple result sets and/or update counts. Normally you can ignore * this unless you are (1) executing a stored procedure that you know may * return multiple results or (2) you are dynamically executing an * unknown SQL string. * <p> * The <code>execute</code> method executes an SQL statement and indicates the * form of the first result. You must then use the methods * <code>getSessionDataSet</code> to retrieve the result. * <p> * @param sql any SQL statement * @return <code>true</code> if the first result is a <code>SessionDataset</code> * object; <code>false</code> if it is an update count or there are * no results * @throws IoTDBConnectionException if a database access error occurs. * @throws StatementExecutionException when the statement failed. */
Attachments
Issue Links
- links to