@Test public void testDefect21389() throws Exception{ String sql = "CREATE VIRTUAL PROCEDURE BEGIN SELECT * INTO #temptable FROM pm1.g1; INSERT INTO #temptable (e1) VALUES ('a'); END"; TransformationMetadata metadata = RealMetadataFactory.example1(); Column c = metadata.getElementID("pm1.g1.e1"); c.setUpdatable(false); Command command = new QueryParser().parseCommand(sql); QueryResolver.resolveCommand(command, metadata); ValidatorReport report = Validator.validate(command, metadata); assertEquals(0, report.getItems().size()); }
public static final ValidatorReport validate(LanguageObject object, QueryMetadataInterface metadata) throws TeiidComponentException { ValidatorReport report1 = Validator.validate(object, metadata, new ValidationVisitor()); return report1; }
Validator { public static final ValidatorReport validate(LanguageObject object, QueryMetadataInterface metadata) throws TeiidComponentException { ValidatorReport report1 = Validator.validate(object, metadata, new ValidationVisitor()); return report1; } }
Validator { public static final ValidatorReport validate(LanguageObject object, QueryMetadataInterface metadata) throws TeiidComponentException { ValidatorReport report1 = Validator.validate(object, metadata, new ValidationVisitor()); return report1; }  }
Validator { public static final ValidatorReport validate(LanguageObject object, QueryMetadataInterface metadata) throws TeiidComponentException { ValidatorReport report1 = Validator.validate(object, metadata, new ValidationVisitor()); return report1; }  static final ValidatorReport validate(LanguageObject object, QueryMetadataInterface metadata); static final ValidatorReport validate(LanguageObject object, QueryMetadataInterface metadata, AbstractValidationVisitor visitor); }
Validator { public static final ValidatorReport validate(LanguageObject object, QueryMetadataInterface metadata) throws TeiidComponentException { ValidatorReport report1 = Validator.validate(object, metadata, new ValidationVisitor()); return report1; }  static final ValidatorReport validate(LanguageObject object, QueryMetadataInterface metadata); static final ValidatorReport validate(LanguageObject object, QueryMetadataInterface metadata, AbstractValidationVisitor visitor);  }