@Test
public void testGenerateSqlForNamedSchema() {
GetViewDefinitionGeneratorSybase generator = new GetViewDefinitionGeneratorSybase();
GetViewDefinitionStatement statement = new GetViewDefinitionStatement(null, "owner", "view_name");
Sql[] sql = generator.generateSql(statement, new SybaseDatabase(), null);
assertEquals(1, sql.length);
assertEquals("select text from syscomments where id = object_id('OWNER.view_name') order by colid", sql[0].toSql());
}