// b). If autocreate, create the view if necessary
// c). If validate, validate the view
Iterator i = viewsToValidate.iterator();
while (i.hasNext())
{
ViewImpl v = (ViewImpl) i.next();
if (checkExistTablesOrViews)
{
if (v.exists(getCurrentConnection(), autoCreateTables))
{
viewsCreated.add(v);
}
}
if (validateTables)
{
v.validate(getCurrentConnection(), true, false, autoCreateErrors);
}
// Discard any cached column info used to validate the view
columnInfoByTableName.remove(v.getDatastoreIdentifierFullyQualified());
}
return new List[] { viewsCreated, autoCreateErrors };
}