/** * Checks that the first column returned by a query has the expected type. For example, * * <blockquote> * * <code>checkQueryType("SELECT empno FROM Emp", "INTEGER NOT * NULL");</code> * * </blockquote> * * @param sql Query * @param expected Expected type, including nullability */ public final void checkIntervalConv(String sql, String expected) { tester.checkIntervalConv(SqlTesterImpl.buildQuery(sql), expected); }
/** Checks that a SQL expression gives a particular error. */ public final void checkExpFails(String sql, String expected) { tester.assertExceptionIsThrown(SqlTesterImpl.buildQuery(sql), expected); }
public final void checkExpType(String sql, String expected) { checkColumnType(SqlTesterImpl.buildQuery(sql), expected); }
public void checkExp(String sql) { tester.assertExceptionIsThrown(SqlTesterImpl.buildQuery(sql), null); }