use of org.teiid.translator.jdbc.SQLConversionVisitor in project teiid by teiid.
the class TestNetezzaTranslatorDatetimeConversion method helpGetString.
public String helpGetString(Expression expr) throws Exception {
SQLConversionVisitor sqlVisitor = TRANSLATOR.getSQLConversionVisitor();
sqlVisitor.append(expr);
return sqlVisitor.toString();
}
use of org.teiid.translator.jdbc.SQLConversionVisitor in project teiid by teiid.
the class TestNetezzaTranslatorTypeMapping method helpGetString.
public String helpGetString(Expression expr) throws Exception {
SQLConversionVisitor sqlVisitor = TRANSLATOR.getSQLConversionVisitor();
sqlVisitor.append(expr);
return sqlVisitor.toString();
}
use of org.teiid.translator.jdbc.SQLConversionVisitor in project teiid by teiid.
the class TestSybaseConvertModifier method helpGetString.
public String helpGetString(Expression expr) throws Exception {
SQLConversionVisitor sqlVisitor = trans.getSQLConversionVisitor();
sqlVisitor.append(expr);
return sqlVisitor.toString();
}
use of org.teiid.translator.jdbc.SQLConversionVisitor in project teiid by teiid.
the class TestDayWeekQuarterFunctionModifier method helpTestMod.
public void helpTestMod(Literal c, String format, String expectedStr) throws Exception {
Function func = LANG_FACTORY.createFunction(format, Arrays.asList(c), String.class);
OracleExecutionFactory trans = new OracleExecutionFactory();
trans.start();
SQLConversionVisitor sqlVisitor = trans.getSQLConversionVisitor();
sqlVisitor.append(func);
assertEquals(expectedStr, sqlVisitor.toString());
}
use of org.teiid.translator.jdbc.SQLConversionVisitor in project teiid by teiid.
the class TestOracleConvertModifier method helpGetString.
public String helpGetString(Expression expr) throws Exception {
OracleExecutionFactory trans = new OracleExecutionFactory();
trans.start();
SQLConversionVisitor sqlVisitor = TRANSLATOR.getSQLConversionVisitor();
sqlVisitor.append(expr);
return sqlVisitor.toString();
}
Aggregations