Supporting multiple versions of a routine
First Claim
Patent Images
1. A method for supporting versions of a routine, comprising:
- creating a first version of the routine in response to receiving a create statement, wherein the first version is identified as an active version in a catalog in a datastore when created in response to receiving the create statement, wherein the first version of the routine is stored in the datastore;
receiving multiple alter statements that include an add version clause;
for each of the multiple alter statements that include an add version clause that is received, creating a new version of the routine, wherein multiple versions of the routine are stored in the datastore simultaneously, wherein the catalog in the datastore identifies one version of the multiple versions as an active version of the routine, wherein the active version identifies which version of the multiple versions of the routine to call when the routine is invoked;
activating a second version of the routine in response to receiving an alter statement including an activate version clause that specifies a version to be activated, wherein the catalog in the datastore identifies the second version as the active version of the routine;
receiving a request to invoke the routine;
in response to receiving the request to invoke the routine, determining whether a version of the routine identified by a current version routine indicator exists;
in response to determining that the version identified by the current routine version indicator exists, invoking the version of the routine identified by the current version routine indicator; and
in response to determining that the version identified by the current routine version indicator does not exist, invoking the second version of the routine that is identified as the active version.
2 Assignments
0 Petitions
Accused Products
Abstract
Techniques are provided for supporting versions of a routine. A first version of the routine is created. A second version of the routine is generated in response to receiving an alter statement including an add version clause. The second version of the routine is activated in response to receiving an alter statement including an activate version clause.
16 Citations
24 Claims
-
1. A method for supporting versions of a routine, comprising:
-
creating a first version of the routine in response to receiving a create statement, wherein the first version is identified as an active version in a catalog in a datastore when created in response to receiving the create statement, wherein the first version of the routine is stored in the datastore; receiving multiple alter statements that include an add version clause; for each of the multiple alter statements that include an add version clause that is received, creating a new version of the routine, wherein multiple versions of the routine are stored in the datastore simultaneously, wherein the catalog in the datastore identifies one version of the multiple versions as an active version of the routine, wherein the active version identifies which version of the multiple versions of the routine to call when the routine is invoked; activating a second version of the routine in response to receiving an alter statement including an activate version clause that specifies a version to be activated, wherein the catalog in the datastore identifies the second version as the active version of the routine; receiving a request to invoke the routine; in response to receiving the request to invoke the routine, determining whether a version of the routine identified by a current version routine indicator exists; in response to determining that the version identified by the current routine version indicator exists, invoking the version of the routine identified by the current version routine indicator; and in response to determining that the version identified by the current routine version indicator does not exist, invoking the second version of the routine that is identified as the active version. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. An article of manufacture for supporting versions of a routine, wherein the article of manufacture comprises a computer readable medium storing instructions, and wherein the article of manufacture is operable to:
-
create a first version of the routine in response to receiving a create statement, wherein the first version is identified as an active version in a catalog in a datastore when created in response to receiving the create statement, wherein the first version of the routine is stored in the datastore; receive multiple alter statements that include an add version clause; for each of the multiple alter statements that include an add version clause that is received, create a new version of the routine, wherein multiple versions of the routine are stored in the datastore simultaneously, wherein the catalog in the datastore identifies one version of the multiple versions as an active version of the routine, wherein the active version identifies which version of the multiple versions of the routine to call when the routine is invoked; activate a second version of the routine in response to receiving an alter statement including an activate version clause that specifies a version to be activated, wherein the catalog in the datastore identifies the second version as the active version of the routine; receive a request to invoke the routine; in response to receiving the request to invoke the routine, determine whether a version of the routine identified by a current version routine indicator exists; in response to determining that the version identified by the current routine version indicator exists, invoke the version of the routine identified by the current version routine indicator; and in response to determining that the version identified by the current routine version indicator does not exist, invoke the second version of the routine that is identified as the active version. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16)
-
-
17. A system for supporting versions of a routine, comprising:
hardware logic capable of causing operations to be performed, the operations comprising; creating a first version of the routine in response to receiving a create statement, wherein the first version is identified as an active version in a catalog in a datastore when created in response to receiving the create statement, wherein the first version of the routine is stored in the datastore; receiving multiple alter statements that include an add version clause; for each of the multiple alter statements that include an add version clause that is received, creating a new version of the routine, wherein multiple versions of the routine are stored in the datastore simultaneously, wherein the catalog in the datastore identifies one version of the multiple versions as an active version of the routine, wherein the active version identifies which version of the multiple versions of the routine to call when the routine is invoked; activating a second version of the routine in response to receiving an alter statement including an activate version clause that specifies a version to be activated, wherein the catalog in the datastore identifies the second version as the active version of the routine; receiving a request to invoke the routine; in response to receiving the request to invoke the routine, determining whether a version of the routine identified by a current version routine indicator exists; in response to determining that the version identified by the current routine version indicator exists, invoking the version of the routine identified by the current version routine indicator; and in response to determining that the version identified by the current routine version indicator does not exist, invoking the second version of the routine that is identified as the active version. - View Dependent Claims (18, 19, 20, 21, 22, 23, 24)
Specification