Search in sources :

Example 1 with DropRole

use of com.facebook.presto.sql.tree.DropRole in project presto by prestodb.

the class TestSqlParser method testDropRole.

@Test
public void testDropRole() throws Exception {
    assertStatement("DROP ROLE role", new DropRole(new Identifier("role")));
    assertStatement("DROP ROLE \"role\"", new DropRole(new Identifier("role")));
    assertStatement("DROP ROLE \"ro le\"", new DropRole(new Identifier("ro le")));
    assertStatement("DROP ROLE \"!@#$%^&*'ад\"\"мін\"", new DropRole(new Identifier("!@#$%^&*'ад\"мін")));
}
Also used : Identifier(com.facebook.presto.sql.tree.Identifier) QueryUtil.quotedIdentifier(com.facebook.presto.sql.QueryUtil.quotedIdentifier) DropRole(com.facebook.presto.sql.tree.DropRole) Test(org.testng.annotations.Test)

Aggregations

QueryUtil.quotedIdentifier (com.facebook.presto.sql.QueryUtil.quotedIdentifier)1 DropRole (com.facebook.presto.sql.tree.DropRole)1 Identifier (com.facebook.presto.sql.tree.Identifier)1 Test (org.testng.annotations.Test)1