use of org.teiid.core.types.BinaryType in project teiid by teiid.
the class TestSQLXMLProcessing method testXmlSerializeBinary2.
@Test
public void testXmlSerializeBinary2() throws Exception {
// $NON-NLS-1$
String sql = "SELECT cast(xmlserialize(document xmlelement(other) as blob encoding \"UTF-16\" version '1.2' including xmldeclaration) as varbinary)";
List<?>[] expected = new List<?>[] { Arrays.asList(new BinaryType("<?xml version=\"1.2\" encoding=\"UTF-16\"?><other></other>".getBytes(Charset.forName("UTF-16")))) };
process(sql, expected);
}
Aggregations