Search in sources :

Example 1 with PGMacAddrExpr

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

the class MacAddrTest method test_timestamp.

public void test_timestamp() throws Exception {
    String sql = "macaddr '12:34:56:78:90:ab'";
    PGExprParser parser = new PGExprParser(sql);
    PGMacAddrExpr expr = (PGMacAddrExpr) parser.expr();
    Assert.assertEquals("macaddr '12:34:56:78:90:ab'", expr.toString());
}
Also used : PGExprParser(com.alibaba.druid.sql.dialect.postgresql.parser.PGExprParser) PGMacAddrExpr(com.alibaba.druid.sql.dialect.postgresql.ast.expr.PGMacAddrExpr)

Aggregations

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