use of io.questdb.griffin.engine.functions.catalogue.CursorDereferenceFunctionFactory in project questdb by bluestreak01.
the class FunctionParserTest method testUndefinedBindVariableDefineCursor.
@Test
public void testUndefinedBindVariableDefineCursor() {
bindVariableService.clear();
functions.add(new CursorDereferenceFunctionFactory());
try (Function ignored = parseFunction("($1).n", null, createFunctionParser())) {
Assert.fail();
} catch (SqlException e) {
Assert.assertEquals(1, e.getPosition());
}
}
Aggregations