Search in sources :

Example 1 with PGCircleExpr

use of com.alibaba.druid.sql.dialect.postgresql.ast.expr.PGCircleExpr in project druid by alibaba.

the class CircleTest method test_timestamp.

public void test_timestamp() throws Exception {
    String sql = "circle '((0,0),2)'";
    PGExprParser parser = new PGExprParser(sql);
    PGCircleExpr expr = (PGCircleExpr) parser.expr();
    Assert.assertEquals("circle '((0,0),2)'", expr.toString());
}
Also used : PGExprParser(com.alibaba.druid.sql.dialect.postgresql.parser.PGExprParser) PGCircleExpr(com.alibaba.druid.sql.dialect.postgresql.ast.expr.PGCircleExpr)

Aggregations

PGCircleExpr (com.alibaba.druid.sql.dialect.postgresql.ast.expr.PGCircleExpr)1 PGExprParser (com.alibaba.druid.sql.dialect.postgresql.parser.PGExprParser)1