Search in sources :

Example 1 with PGLineSegmentsExpr

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

the class LineSegmentsTest method test_timestamp.

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

Aggregations

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