Search in sources :

Example 1 with XMLQuery

use of org.teiid.query.sql.symbol.XMLQuery in project teiid by teiid.

the class TestResolver method testXmlQueryWithParam.

@Test
public void testXmlQueryWithParam() {
    Query q = (Query) helpResolve("select xmlquery('/a' passing ?)");
    XMLQuery ex = (XMLQuery) SymbolMap.getExpression(q.getSelect().getSymbols().get(0));
    assertEquals(DataTypeManager.DefaultDataClasses.XML, ex.getPassing().get(0).getExpression().getType());
}
Also used : XMLQuery(org.teiid.query.sql.symbol.XMLQuery) XMLQuery(org.teiid.query.sql.symbol.XMLQuery) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 XMLQuery (org.teiid.query.sql.symbol.XMLQuery)1