System, method and computer program product for passing host variables to a database management system
First Claim
Patent Images
1. A system for passing arrays or structures as host variables to a stored procedure, comprising:
- means for packing an array or structure into a large object;
means for sending said large object to a database management system, wherein said large object comprises a descriptor area and a data area; and
an adaptor, coupled to said database management system, for passing a reference to said data area to the stored procedure.
1 Assignment
0 Petitions
Accused Products
Abstract
A system and method for passing arrays and structures as host variables to a stored procedure. An application program packs an array or structure into a binary large object (BLOB) and sends the BLOB to a database management system. An adapter called by the database management system, and coupled to the stored procedure, passes a reference to the data area in the BLOB to the stored procedure. After completion of the stored procedure, the BLOB is returned to the application program. Finally, upon the return from the stored procedure call, the application program unpacks the BLOB back into the array or structure.
73 Citations
34 Claims
-
1. A system for passing arrays or structures as host variables to a stored procedure, comprising:
-
means for packing an array or structure into a large object; means for sending said large object to a database management system, wherein said large object comprises a descriptor area and a data area; and an adaptor, coupled to said database management system, for passing a reference to said data area to the stored procedure. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A system for passing host variables to a stored procedure, comprising:
-
means for packing the contents of a first data type, defined in a host language, into a second data type, wherein said first data type is not a recognized SQL data type and said second data type is a recognized SQL data type; means for sending said second data type to a database management system; and adapting means, coupled to said database management system, for passing a reference to a data area in said second data type that is associated with said first data type to the stored procedure. - View Dependent Claims (7, 8, 9)
-
-
10. A system for generating a client application/stored procedure, comprising:
-
means for interpreting source code written in a host language; means for generating p-code to pack the contents of a host variable into a large object, wherein said host variable is not a recognized SQL data type, and wherein said large object is a recognized SQL data type; means for registering said large object with a pre-processing service means in a database management system; means for receiving an array of function pointers from said pre-processing means; means for using said array of function pointers within the client application/stored procedure to call a stored procedure; and means for generating p-code to unpack the contents of said large object returned from the stored procedure into said host variable. - View Dependent Claims (11, 12, 13)
-
-
14. A method for passing arrays or structures as host variables to a stored procedure, comprising the steps of:
-
packing a first array or structure into a large object; sending said large object to a database management system on a server, wherein said large object comprises a descriptor area and a data area; invoking an adapter for the stored procedure, wherein said adapter is coupled to said database management system; said adapter passing a reference to said data area to the stored procedure. - View Dependent Claims (15, 16, 17, 18)
-
-
19. A method for passing host variables to a stored procedure, comprising the steps of:
-
packing the contents of a first data type, defined in a host language, into a second data type, wherein said first data type is not a recognized SQL data type and said second data type is a recognized SQL data type; sending said second data type to a database management system; and passing a reference to a data area in said second data type that is associated with said first data type to the stored procedure. - View Dependent Claims (20, 21, 22)
-
-
23. A method for generating a client application/stored procedure, comprising the steps of:
-
interpreting source code written in a host language; generating p-code to pack the contents of a host variable into a large object, wherein said host variable is not a recognized SQL data type, and wherein said large object is a recognized SQL data type; registering said large object with a pre-processing service means in a database management system; receiving an array of function pointers from said pre-processing means; calling a stored procedure using said array of function pointers within the client application/stored procedure; and generating p-code to unpack the contents of said large object returned from the stored procedure into said host variable. - View Dependent Claims (24, 25, 26)
-
-
27. A program storage device readable by a machine, tangibly embodying a program of instructions executable by the machine for passing data structures as host variables to a stored procedure, the program of instructions comprising the steps of:
-
packing the contents of a first data type, defined in a host language, into a second data type, wherein said first data type is not a recognized SQL data type and said second data type is a recognized SQL data type; sending said second data type to a database management system; and passing a reference to a data area in said second data type that is associated with said first data type to the stored procedure. - View Dependent Claims (28, 29, 30)
-
-
31. A program storage device readable by a machine, tangibly embodying a program of instructions executable by the machine for generating a client application/stored procedure, the program of instructions comprising the steps of:
-
interpreting source code written in a host language; generating p-code to pack the contents of a host variable into a large object, wherein said host variable is not a recognized SQL data type, and wherein said large object is a recognized SQL data type; registering said large object with a pre-processing service means in a database management system; receiving an array of function pointers from said pre-processing means; calling a stored procedure using said array of function pointers within the client application/stored procedure; and generating p-code to unpack the contents of said large object returned from the stored procedure into said host variable. - View Dependent Claims (32, 33, 34)
-
Specification