shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-suite/src/test/java/org/apache/shardingsphere/test/integration/engine/it/BaseITCase.java
/**
     * execute sql for prepareStatement.
     * @param connection datasource connection
     * @param sql SQL statement executed
     * @throws SQLException sql execute exception.
     */
execute sql for prepareStatement.
@param connection datasource connection
@param sql SQL statement executed
@throws SQLException sql execute exception.
execute sql for prepareStatement . @param connection datasource connection @param sql SQL statement executed @throws SQLException sql execute exception .
protected void executeForPrepareStatement(final Connection connection, final String sql) throws SQLException {
        try (PreparedStatement preparedStatement = connection.prepareStatement(sql)) {
            preparedStatement.execute();
        }
    }
protected void executeForPrepareStatement ( final Connection connection , final String sql ) throws SQLException { try ( PreparedStatement preparedStatement = connection . prepareStatement ( sql ) ) { preparedStatement . execute ( ) ; } }
execute sql for prepareStatement.
execute sql for prepareStatement .