US 7,467,386 B2
Parameter passing of data structures where API and corresponding stored procedure are different versions/releases
Edward Joseph Gallagher, San Jose, Calif. (US); and Mang-Rong Ho, San Jose, Calif. (US)
Assigned to International Business Machines Corporation, Armonk, N.Y. (US)
Filed on Jan. 16, 2004, as Appl. No. 10/759,661.
Prior Publication US 2005/0160432 A1, Jul. 21, 2005
Int. Cl. G06F 3/00 (2006.01); G06F 9/44 (2006.01); G06F 9/46 (2006.01); G06F 13/00 (2006.01)
U.S. Cl. 719—313  [719/320] 9 Claims
OG exemplary drawing
 
1. A method of parameter passing of data structures where an API and corresponding stored procedures are of version/release levels different from one another, the method comprising:
receiving from a calling program, a data structure having data structure elements used for communicating data between the stored procedures and the calling program;
parsing the data structure for a first version identifier of the data structure;
comparing the first version identifier of the parsed data structure to a second version identifier of the stored procedures, obtaining version control information from a library, and thereafter parsing data structure elements in accordance to an indication of data structure compatibility, wherein;
when the comparing of the first version identifier with the second version identifier indicates compatibility of a data structure between the calling program and the stored procedures, providing parsing all of the data structure elements of the data structure known to both of said calling program and said stored procedures; and, when the comparing of the first version identifier with the second version identifier indicates incompatibility of a data structure between the calling program and the stored procedures, providing parsing of only data structure elements of the data structure that are known to either of the calling program or the stored procedures.