testAddPrimaryKey(session, new TableColumnInfo[] { pkCol });
final String createMatViewSQL =
"CREATE MATERIALIZED VIEW " + testMaterializedViewName + " REFRESH COMPLETE NEXT SYSDATE + 1 "
+ " WITH PRIMARY KEY AS SELECT * FROM TEST ";
runSQL(session, createMatViewSQL);
final MockSession msession = (MockSession) session;
final String cat = msession.getDefaultCatalog();
final String schema = msession.getDefaultSchema();
final SQLDatabaseMetaData md = session.getSQLConnection().getSQLMetaData();
final ITableInfo info = new TableInfo(cat, schema, testMaterializedViewName, "TABLE", "", md);
final List<String> dropSQL = dialect.getTableDropSQL(info, true, true, qualifier, prefs);
runSQL(session, dropSQL);
}