You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by GitBox <gi...@apache.org> on 2020/01/28 12:41:01 UTC

[GitHub] [ignite] Vladsz83 commented on a change in pull request #7319: IGNITE-12583 : refactored JdbcThinBulkLoadAbstractSelfTest into a parametrized one

Vladsz83 commented on a change in pull request #7319: IGNITE-12583 : refactored JdbcThinBulkLoadAbstractSelfTest into a parametrized one
URL: https://github.com/apache/ignite/pull/7319#discussion_r371778037
 
 

 ##########
 File path: modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinAbstractDmlStatementSelfTest.java
 ##########
 @@ -164,6 +165,19 @@ final CacheConfiguration binaryCacheConfig() {
         return cache;
     }
 
+    /** Clean tables to avoid DDL errors in repeated test runs.  */
+    protected void dropTables() throws SQLException {
+        List<List<?>> tablesLeft = execute(conn, "select CACHE_NAME, TABLE_NAME, SCHEMA_NAME from SYS.TABLES");
+        for( List<?> resultRecord : tablesLeft ){
+            String cacheName = resultRecord.get(0).toString();
+            if(cacheName.startsWith("SQL_")){
+                String tableName = resultRecord.get(1).toString();
+                String schemaName = resultRecord.get(2).toString();
+                execute(conn, "drop table "+schemaName+".\""+tableName+"\"");
 
 Review comment:
   Removed at all. Simplier approach involved: dropping table on the place: "drop table..."

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services