Patent ID: 7860894

Claim:
A method of converting types of parameters between two stored procedures utilizing different types, wherein the two procedures are stored in a computer memory, comprising: receiving a first type for a parameter from a first stored procedure to be sent to a second stored procedure utilizing different types; retrieving a template that specifies a type conversion of the first type to a second type for the second stored procedure; converting the first type to the second type as specified in the template, wherein the template comprises mappings between the first and second types; if a first mode for the parameter uses holders for out or in out parameters and the first mode is out or in out, determining if there is a holder type for the first type that is predefined; after the determining if there is a holder type for the first type that is predefined, if there is no holder type for the first type that is predefined, declaring the holder type; creating a first expression that extracts an underlying value of the parameter using the mappings to a value of the second type; passing the first expression to a second expression, the second expression comprising a placeholder for the underlying value of the first type; and executing the second expression, wherein the executing the second expression comprises evaluating the underlying value of the first type to a corresponding parameter value of the second type.