@Test (expected=DuplicateIndexException.class)
public void createTable2PKs() throws Exception {

    String sql = "CREATE TABLE test.t1 (c1 int primary key, c2 int NOT NULL, primary key (c2))";
    
    StatementNode stmt = parser.parseStatement(sql);
    assertTrue (stmt instanceof CreateTableNode);
    TableDDL.createTable(ddlFunctions, null, DEFAULT_SCHEMA, (CreateTableNode)stmt, null);
}