Rong Kang created IOTDB-1088:
--------------------------------
Summary: Add executeStatement function into Sesssion and
SessionPool
Key: IOTDB-1088
URL: https://issues.apache.org/jira/browse/IOTDB-1088
Project: Apache IoTDB
Issue Type: Task
Components: Client/Java
Reporter: Rong Kang
Add function `executeStatement` Sesssion and SessionPool, referring to
java.sql.Statement#execute(java.lang.String).
{code:java}
/**
* 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.
*/ {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)