public void alterTablespace(AlterTablespaceProto alterProto) throws CatalogException {
Connection conn;
PreparedStatement pstmt = null;
if (alterProto.getCommandList().size() == 1) {
AlterTablespaceCommand command = alterProto.getCommand(0);
if (command.getType() == AlterTablespaceProto.AlterTablespaceType.LOCATION) {
AlterTablespaceProto.SetLocation setLocation = command.getLocation();
try {
String sql = "UPDATE " + TB_SPACES + " SET SPACE_URI=? WHERE SPACE_NAME=?";
conn = getConnection();
pstmt = conn.prepareStatement(sql);