[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference azur::mcc

Title:DECmcc user notes file. Does not replace IPMT.
Notice:Use IPMT for problems. Newsletter location in note 6187
Moderator:TAEC::BEROUD
Created:Mon Aug 21 1989
Last Modified:Wed Jun 04 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:6497
Total number of notes:27359

2280.0. "ADD/REMOVE returning all values in set" by MICROW::LANG () Thu Feb 06 1992 12:41

    
    I'm implementing an AM on Ultix, which accesses an SQL database.  We
    have ACLS which are set-valued attributes. The documentation on ADD
    and REMOVE seems to imply that the expected output is just the values
    which were modified.  However, after talking to a few people, my 
    understanding  is that the expected output  has the whole set,
    not just the records which were modified.  Is this a standard behavior
    of ADD/REMOVE?
    
    We may have many ACLS, and it seems like returning all the ACLS when
    only 1 or 2 may have been modified, is giving the user information that
    is not necessarily helpful.  If they want to see the whole set, they
    can issue a SHOW.
    
    Have other people run into this problem?
    
    		thanks,
    
    			Bonnie  
T.RTitleUserPersonal
Name
DateLines
2280.1TOOK::MINTZErik Mintz, DECmcc Development, dtn 226-5033Wed Feb 26 1992 15:432
Entered as a question (priority 5) QAR 2382

2280.2cross posting QAR answerTOOK::KOHLSRuth KohlsWed Mar 18 1992 14:4222
I'm posting my answer to Erik's QAR 2382 here.  I think I hit all the
permutations of "attribute" and "set-valued", but if you have more questions,
send me mail and I will attempt to find more answers. 

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
As I read section 15.4.2 of the SRM, which contains the templates for the ADD
directive and for the REMOVE directive, the response or exception for each
directive is an ATTRIB_LIST. This attrib_list contains the complete, current,
value of each changed ATTRIBUTE, or in the partial success or failure case,
each attribute that SHOULD have changed. The reason code for each datum in the
ATTRIB_LIST indicates success or failure reason for that individual attribute. 

In the case of a set-valued attribute, the attribute is the whole set, not just
the modified element, so the entire set is returned. If you are modifying a set
that is a component of something larger, the whole "something larger" attribute
is returned. 

If you have a collection of set-valued attributes and modify one of them, the
modified attribute is returned, not the whole collection. 

Ruth Kohls