Beispiel #1
0
 @Override
 protected void sqlDrop(final String tableName, final IDfSession session) {
   try {
     final String query = "select * from dm_dbo." + tableName + " enable(return_top 1) ";
     DeployUtil.execDqlVoid(query, session);
     LOGGER.info("Drop: " + tableName);
     final String qr =
         "execute exec_sql with query=" + DeployUtil.prepareForExecSQL("drop view " + tableName);
     DeployUtil.execDqlVoid(qr, session);
   } catch (final DfException e) {
     LOGGER.warn("Problem dropping view. Skipped: " + e.getMessage());
   }
 }
Beispiel #2
0
 @Override
 protected String getDropStatement(final String in) {
   return "execute exec_sql with query="
       + DeployUtil.prepareForExecSQL("drop view ajwf_" + in.trim());
 }