Search in sources :

Example 1 with CursorDereferenceFunctionFactory

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());
    }
}
Also used : Function(io.questdb.cairo.sql.Function) CursorDereferenceFunctionFactory(io.questdb.griffin.engine.functions.catalogue.CursorDereferenceFunctionFactory) Test(org.junit.Test)

Aggregations

Function (io.questdb.cairo.sql.Function)1 CursorDereferenceFunctionFactory (io.questdb.griffin.engine.functions.catalogue.CursorDereferenceFunctionFactory)1 Test (org.junit.Test)1