@Override
  public void analyzeInternal(ASTNode root) throws SemanticException {
    String databaseName = getUnescapedName((ASTNode) root.getChild(0));
    String newLocation = unescapeSQLString(root.getChild(1).getText());

    outputs.add(toWriteEntity(newLocation));

    AlterDatabaseSetLocationDesc desc = new AlterDatabaseSetLocationDesc(databaseName, newLocation);
    addAlterDatabaseDesc(desc);
  }
Analyzer for database set location commands.
ql/src/java/org/apache/hadoop/hive/ql/ddl/database/alter/location/AlterDatabaseSetLocationAnalyzer.java