public void removeTempTable ( String tempTableName ) throws SQLException { if ( tempTableName == null ) { return ; } if ( ! tempTableName . contains ( TEMP_TABLE_NAME_SUFFIX ) ) { throw new SQLException ( tempTableName + " is not a valid temp table name" ) ; } try ( Connection conn = this . getConn ( ) ; Statement stmt = conn . createStatement ( ) ) { final String sql = "DROP TABLE " + tempTableName + ";" ; LOG . debug ( "{} executing update: {}" , this . dbInfo , sql ) ; int row = stmt . executeUpdate ( sql ) ; } }
Drops a temporary table .