Search in sources :

Example 1 with DropRole

use of io.prestosql.sql.tree.DropRole in project hetu-core by openlookeng.

the class TestSqlParser method testDropRole.

@Test
public void testDropRole() {
    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(io.prestosql.sql.tree.Identifier) QueryUtil.quotedIdentifier(io.prestosql.sql.QueryUtil.quotedIdentifier) DropRole(io.prestosql.sql.tree.DropRole) Test(org.testng.annotations.Test)

Aggregations

QueryUtil.quotedIdentifier (io.prestosql.sql.QueryUtil.quotedIdentifier)1 DropRole (io.prestosql.sql.tree.DropRole)1 Identifier (io.prestosql.sql.tree.Identifier)1 Test (org.testng.annotations.Test)1